Skip to content

Instantly share code, notes, and snippets.

@arshjat
Created January 1, 2019 10:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arshjat/d06643113ac5dda67ac13375bfe0c01d to your computer and use it in GitHub Desktop.
Save arshjat/d06643113ac5dda67ac13375bfe0c01d to your computer and use it in GitHub Desktop.
y_pred=model2.predict(X_test)
y = []
for i in y_pred:
if i <= 0.5 :
y.append(0)
else :
y.append(1)
np.savetxt("foo.csv", y, delimiter="\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment