mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-05 01:09:40 +08:00
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