Modernize Python 2 code to get ready for Python 3 AGAIN

This commit is contained in:
cclauss
2018-01-21 08:25:19 +01:00
parent 54f6d1f6d7
commit 4ee0e620cb
6 changed files with 31 additions and 30 deletions

View File

@ -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