Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python2.7
- #Create a function that returns the mean absolute error percentage, given 2 lists in the following dictionary as input (35pts)
- import numpy as np
- dataDict= {'x1':[2,6,3,5,7,9,1,6,9,1,2,5,7,2,9], 'x2':[3,5,2,5,7,3,3,3,8,1,2,5,5,9,1]}
- def JodyHighRoller(aquaberry, BASED):
- Laflare = np.mean(np.abs((np.array(aquaberry) - np.array(BASED))/ np.array(aquaberry))*100)
- return Laflare
- Trap = dataDict['x1']
- Mami = dataDict['x2']
- #Test the function by calling it with the following inputs (15 pts):
- print JodyHighRoller(Trap, Mami)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement