How to prepare the data for Classification learner Toolbox?

2 ビュー (過去 30 日間)
EK
EK 2020 年 2 月 8 日
コメント済み: EK 2020 年 2 月 13 日
Hello
I would like to ask in respect of Classification Learner how many data sets should I have. Should I have data set for training and an other for testing or is it pssible to train on 10% of data and then test all population? Is it possible to do training and testing within toolbox window or I have to export model to workspace and test it separatly?
Thanks a lot!
Helen

採用された回答

Bhargavi Maganuru
Bhargavi Maganuru 2020 年 2 月 13 日
You can refer Holdout Validation scheme , where you can select the percentage of data to use as a test set while training. But the final model is always trained using full data set. To explicitly test the model, you can export the model to Workspace and make predictions on new data. For more information about exporting the model refer this link
  1 件のコメント
EK
EK 2020 年 2 月 13 日
Hello Bhargavi,
Thank you very much. If I set Holdout Validation scheme at 10% does it mean that I train classifier on 10% of my data and then apply at whole population?
When I export the model to workspace and make prediction on the new data I can not use the plots as in toolbox. Also the values look somehow odd. In Toolbox classifier gives me 85% accuracy. If I export model to workspace and apply it to the same data set the lamda values are near to 0

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeClassification Learner App についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by