Skip to content

Instantly share code, notes, and snippets.

@Sanlap1997
Created October 4, 2020 01:50
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 Sanlap1997/ba14bde67dc15891f82956a1189e589d to your computer and use it in GitHub Desktop.
Save Sanlap1997/ba14bde67dc15891f82956a1189e589d to your computer and use it in GitHub Desktop.
label_array_test_last = test_df.groupby('id')['label1'].nth(-1)[y_mask].values
label_array_test_last = label_array_test_last.reshape(label_array_test_last.shape[0],1).astype(np.float32)
# test metrics
scores_test = estimator.evaluate(seq_array_test_last, label_array_test_last, verbose=2)
print('Accuracy: {}'.format(scores_test[1]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment