Skip to content

Instantly share code, notes, and snippets.

@ericness
Created September 17, 2018 22:07
Show Gist options
  • Save ericness/0fb793cb90253b86dfd6e159a9badf9f to your computer and use it in GitHub Desktop.
Save ericness/0fb793cb90253b86dfd6e159a9badf9f to your computer and use it in GitHub Desktop.
Checks that a MockBinaryClassifier can run predict.
model = MockBinaryClassifier()
test_feature = np.array([[0], [0.5], [3], [-1]])
predictions = model.predict(test_feature)
print(predictions)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment