Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2458ca commit 94e63cdCopy full SHA for 94e63cd
learning.py
@@ -33,7 +33,7 @@ def manhattan_distance(predictions, targets):
33
34
35
def mean_boolean_error(predictions, targets):
36
- return mean([(p != t) for p, t in zip(predictions, targets)])
+ return mean(int(p != t) for p, t in zip(predictions, targets))
37
38
# ______________________________________________________________________________
39
0 commit comments