Data Division of Neural Network training?
Afficher commentaires plus anciens
I have a 2000000 by 7 matrix where the first 6 volumns are inputs and the last column is the output. So I am training a neural network to fit the 7th column as a function of the first 6 columns:
Input=Input;
Output=Output;
ANN=fitnet([25],'trainbr');
ANN=train(ANN,Input,Output);
My problem is the data division. Since the data is divided into three section: validation, test, and training. I want to make sure that the last 100 rows (index: 1999900 to 2000000) are included in the training set, and the rest of the data (rows) are randomized into the three sections. "dividerand" does what I want but unfortunately, it does not gurantee that the last 100 rows are in the training set. Do you guys have any solutions?
4 commentaires
NAVNEET NAYAN
le 18 Août 2023
Is it possible for you to separate the last 100 rows from the dataset and then do the random allotment using "dividerand" ?
Ali Almakhmari
le 18 Août 2023
NAVNEET NAYAN
le 18 Août 2023
Modifié(e) : NAVNEET NAYAN
le 18 Août 2023
What I am saying is remove the last 100 rows and use "dividerand" on the rest of the data.
Ali Almakhmari
le 18 Août 2023
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Deep Learning Toolbox dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!