Skip to content

Instantly share code, notes, and snippets.

@sagarhowal
Created January 14, 2018 12:53
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 sagarhowal/6f94cce5e4b020445726471275fcdfb5 to your computer and use it in GitHub Desktop.
Save sagarhowal/6f94cce5e4b020445726471275fcdfb5 to your computer and use it in GitHub Desktop.
# Train/test split by recording sessions
train, test = tc.activity_classifier.util.random_split_by_session(data, session_id='exp_id', fraction=0.8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment