@@ -63,7 +63,7 @@ def rmse(predict, actual):
63
63
"""
64
64
Examples(rounded for precision):
65
65
>>> actual = [1,2,3];predict = [1,4,3]
66
- >>> np.around(rmse(predict,actual),decimals = 2)
66
+ >>> float( np.around(rmse(predict,actual),decimals = 2) )
67
67
1.15
68
68
69
69
>>> actual = [1,1,1];predict = [1,1,1]
@@ -85,11 +85,11 @@ def rmsle(predict, actual):
85
85
"""
86
86
Examples(rounded for precision):
87
87
>>> actual = [10,10,30];predict = [10,2,30])
88
- >>> float(np.around(rmsle(predict,actual),decimals = 2 )
88
+ >>> float(np.around(rmsle(predict, actual), decimals=2) )
89
89
0.75
90
90
91
- >>> actual = [1,1,1]; predict = [1,1,1]
92
- >>> float(rmsle(predict,actual))
91
+ >>> actual = [1,1,1] ; predict = [1,1,1]
92
+ >>> float(rmsle(predict, actual))
93
93
0.0
94
94
"""
95
95
predict = np .array (predict )
@@ -117,12 +117,12 @@ def mbd(predict, actual):
117
117
118
118
Here the model overpredicts
119
119
>>> actual = [1,2,3];predict = [2,3,4]
120
- >>> np.around(mbd(predict,actual),decimals = 2)
120
+ >>> float( np.around(mbd(predict,actual),decimals = 2) )
121
121
50.0
122
122
123
123
Here the model underpredicts
124
124
>>> actual = [1,2,3];predict = [0,1,1]
125
- >>> np.around(mbd(predict,actual),decimals = 2)
125
+ >>> float( np.around(mbd(predict,actual),decimals = 2) )
126
126
-66.67
127
127
"""
128
128
predict = np .array (predict )
0 commit comments