Last active
September 25, 2020 17:05
-
-
Save Aakash-kaushik/f9afb4cd9d354964b4cabdf9c6999d9f to your computer and use it in GitHub Desktop.
procesing the data
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
mat dataset = tempDataset.submat(0, 1, tempDataset.n_rows - 1, tempDataset.n_cols - 1); | |
mat test = tempTest.submat(0, 1, tempTest.n_rows - 1, tempTest.n_cols - 1); | |
mat train, valid; | |
data::Split(dataset, train, valid, RATIO); | |
const mat trainX = train.submat(1, 0, train.n_rows - 1, train.n_cols - 1); | |
const mat validX = valid.submat(1, 0, valid.n_rows - 1, valid.n_cols - 1); | |
const mat testX = test.submat(1, 0, test.n_rows - 1, test.n_cols - 1); | |
const mat trainY = train.row(0) + 1; | |
const mat validY = valid.row(0) + 1; | |
const mat testY = test.row(0) + 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment