Skip to content

Instantly share code, notes, and snippets.

@flare9x
Created June 15, 2018 20:17
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 flare9x/67c2879d4f637c1086c511c7966d4711 to your computer and use it in GitHub Desktop.
Save flare9x/67c2879d4f637c1086c511c7966d4711 to your computer and use it in GitHub Desktop.
Train and Test Sets
# Split data to train and test sets
# dummy data
data = collect(1:1:100)
# Train and test sets
# Set specific % for train and test sets
len = length(data)
mult = .30
split_no = Int64.(round(mult * len))
train_set = data[1:split_no]
test_set = data[split_no+1:len]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment