gamma value in fitcdiscr

1 次查看(过去 30 天)
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

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

Community Treasure Hunt

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

Start Hunting!

Translated by