Created
June 15, 2018 20:17
-
-
Save flare9x/67c2879d4f637c1086c511c7966d4711 to your computer and use it in GitHub Desktop.
Train and Test Sets
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
# 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