Hi. I hope to make a cross-validation model (ClassificationPartitionedModel) using 'fitcdiscr'. I hope to set the 'gamma' parameter differently to each of training sets (folds).
But the 'fitcdiscr' supports a single scalar value of the 'gamma'. I can't modify the model manually because the ClassificationPartitionedModel is read-only.
Does anyone have a brilliant idea to solve this problem ?

 採用された回答

Yash Ubale
Yash Ubale 2018 年 10 月 1 日

0 投票

As of now MATLAB does not support setting different 'gamma' values for separate folds in the same training scenario. What I can suggest is, you can manually separate data into different folds and train different cross-validation models using 'fitcdiscr'. This may require some understanding about how the prediction algorithm actually works.

To know more about prediction follow the link below.

Prediction Using Discriminant Analysis Models - https://www.mathworks.com/help/stats/prediction-using-discriminant-analysis-models.html

その他の回答 (0 件)

カテゴリ

製品

リリース

R2018a

質問済み:

2018 年 9 月 20 日

回答済み:

2018 年 10 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by