Filter löschen
Filter löschen

testing, validating and training a feedforwardnet

6 Ansichten (letzte 30 Tage)
Abdulaziz Almershed
Abdulaziz Almershed am 1 Dez. 2020
Beantwortet: Rishik Ramena am 7 Dez. 2020
Greetings;
How does the function 'train' test the model and validate it ? because i have just put inputs and did not seperate them into testing and training data

Akzeptierte Antwort

Rishik Ramena
Rishik Ramena am 7 Dez. 2020
You can add the split ratios manually to the network's divideParams. Here's a snippet showing the same.
[x,t] = simplefit_dataset;
net = feedforwardnet(10);
net.divideParam.trainRatio = 70/100;
net.divideParam.valRatio = 15/100;
net.divideParam.testRatio = 15/100;
[net,tr] = train(net,x,t);

Weitere Antworten (0)

Kategorien

Mehr zu Sequence and Numeric Feature Data Workflows finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by