Skip to content

Commit 27d160c

Browse files
authored
Integer to float for Python 2
I stumbled into this excellent project, and by adding 1.*, the calculation will also work for Python 2
1 parent b5849f4 commit 27d160c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CNTK_CNN.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@
244244
}
245245
],
246246
"source": [
247-
"print(\"Accuracy: \", sum(y_guess == y_truth)/len(y_guess))"
247+
"print(\"Accuracy: \", 1.*sum(y_guess == y_truth)/len(y_guess))"
248248
]
249249
}
250250
],

0 commit comments

Comments
 (0)