Skip to content

Instantly share code, notes, and snippets.

@Sanlap1997
Last active October 4, 2020 01:45
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/980c31828ed291c17624923eb0b7541e to your computer and use it in GitHub Desktop.
Save Sanlap1997/980c31828ed291c17624923eb0b7541e to your computer and use it in GitHub Desktop.
# 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