gamma value in fitcdiscr

2 views (last 30 days)
Jaeyoung Shin
Jaeyoung Shin on 20 Sep 2018
Answered: Yash Ubale on 1 Oct 2018
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 ?

Accepted Answer

Yash Ubale
Yash Ubale on 1 Oct 2018

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

More Answers (0)

Products


Release

R2018a

Community Treasure Hunt

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

Start Hunting!