Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created June 1, 2021 12:05
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 amankharwal/e9c976a1f6e1696dde191f2ce780ee9f to your computer and use it in GitHub Desktop.
Save amankharwal/e9c976a1f6e1696dde191f2ce780ee9f to your computer and use it in GitHub Desktop.
testing_data = data2[["text"]].to_numpy()
testing_id = data2[['id']]
predictions = model.predict(testing_data)
predictions = list(map(int, predictions))
final_output = pd.DataFrame({'id': testing_id.id, 'target': predictions})
print(final_output)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment