-
-
Save Sanlap1997/980c31828ed291c17624923eb0b7541e 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
# EVALUATE ON TEST DATA | |
################################## | |
# We pick the last sequence for each id in the test data | |
seq_array_test_last = [test_df[test_df['id']==id][sequence_cols].values[-sequence_length:] | |
for id in test_df['id'].unique() if len(test_df[test_df['id']==id]) >= sequence_length] | |
seq_array_test_last = np.asarray(seq_array_test_last).astype(np.float32) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment