-
-
Save Sanlap1997/ba14bde67dc15891f82956a1189e589d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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