Skip to content

Commit

Permalink
Fix for issue random-forests#4
Browse files Browse the repository at this point in the history
  • Loading branch information
cseas authored Jul 15, 2018
1 parent d645175 commit ddca55b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ep7.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@
],
"source": [
"# here's one it gets right\n",
"print (\"Predicted %d, Label: %d\" % (classifier.predict(test_data[0]), test_labels[0]))\n",
"prediction = classifier.predict(np.array([test_data[0]], dtype=float), as_iterable=False)",
"print (\"Predicted %d, Label: %d\" % (prediction, test_labels[0]))\n",
"display(0)"
]
},
Expand Down

0 comments on commit ddca55b

Please sign in to comment.