Skip to content

Instantly share code, notes, and snippets.

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 Devanshchowdhury2212/101a02735232048825721df89c99dd2e to your computer and use it in GitHub Desktop.
Save Devanshchowdhury2212/101a02735232048825721df89c99dd2e to your computer and use it in GitHub Desktop.
sample_pred = (model.predict(X_test_transformed_seq[:5])>.5).astype(int)
sample_text = X_test[:5]
truth = y_test[:5]
display(pd.DataFrame(zip(sample_pred,sample_text,truth),columns=['Model Predictions','TEXT','Truth Label']))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment