gamma value in fitcdiscr

조회 수: 1 (최근 30일)
Jaeyoung Shin
Jaeyoung Shin 2018년 9월 20일
답변: Yash Ubale 2018년 10월 1일
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개)

카테고리

Help CenterFile Exchange에서 Discriminant Analysis에 대해 자세히 알아보기

제품


릴리스

R2018a

Community Treasure Hunt

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

Start Hunting!

Translated by