Skip to content

Instantly share code, notes, and snippets.

@lucifermorningstar1305
Created July 29, 2022 13:50
Show Gist options
  • Save lucifermorningstar1305/223c1b5e08a710f6c0669433408c3c25 to your computer and use it in GitHub Desktop.
Save lucifermorningstar1305/223c1b5e08a710f6c0669433408c3c25 to your computer and use it in GitHub Desktop.
Partitioning data into train and test sets
rng = StableRNG(42)
train, test = partition(eachindex(y), 0.85, shuffle=true, rng=rng);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment