Modernize Python 2 code to get ready for Python 3 AGAIN
This commit is contained in:
@@ -70,9 +70,9 @@ def mbd(predict, actual):
|
||||
difference = predict - actual
|
||||
numerator = np.sum(difference) / len(predict)
|
||||
denumerator = np.sum(actual) / len(predict)
|
||||
print str(numerator)
|
||||
print str(denumerator)
|
||||
print(numerator)
|
||||
print(denumerator)
|
||||
|
||||
score = float(numerator) / denumerator * 100
|
||||
|
||||
return score
|
||||
return score
|
||||
|
||||
Reference in New Issue
Block a user