testing, validating and training a feedforwardnet

7 ビュー (過去 30 日間)
Abdulaziz Almershed
Abdulaziz Almershed 2020 年 12 月 1 日
回答済み: Rishik Ramena 2020 年 12 月 7 日
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

採用された回答

Rishik Ramena
Rishik Ramena 2020 年 12 月 7 日
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);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDeep Learning Toolbox についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by