How do I find the parameters in discriminant learner of ensemble classification?

1 回表示 (過去 30 日間)
Bohan Xing
Bohan Xing 2018 年 11 月 5 日
編集済み: Don Mathis 2018 年 11 月 7 日
I am using the classification app to decode some information. I extracted code and found the following parameters gave me a good accuracy.
classificationEnsemble = fitcensemble(...
predictors, ...
response, ...
'Method', 'Subspace', ...
'NumLearningCycles', 30, ...
'Learners', 'discriminant', ...
'NPredToSample', subspaceDimension, ...
'ClassNames', [1; 2; 3; 4]);
I know that there are many different discriminant type such as linear or quadratic. And there are hyperparameters such as delta and gamma. (https://www.mathworks.com/help/stats/templatediscriminant.html)
I would like to know how can I find the exact settings of the discriminant learner in the model generated by above code. Thank you very much!

採用された回答

Don Mathis
Don Mathis 2018 年 11 月 7 日
編集済み: Don Mathis 2018 年 11 月 7 日
The property
classificationEnsemble.Trained
Contains the 30 individual Disciminant models that make up your ensemble. You can look at their parameters indviidually, for example:
classificationEnsemble.Trained{1}.Mu
Tip: you can call 'help' on an object to see all the properties and methods on it. In this case, it shows that there's a Trained property:
help classificationEnsemble

その他の回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by