What is a learning cycle mentioned in the 'fitcensemble' documentation

3 ビュー (過去 30 日間)
Pengfei Zhao
Pengfei Zhao 2017 年 4 月 4 日
回答済み: Drew 2023 年 11 月 3 日
What does the term 'learning cycle' refer to. It is mentioned in the 'fitcensemble' documentation.

回答 (1 件)

Drew
Drew 2023 年 11 月 3 日
See the "NumLearningCycles" section on the page https://www.mathworks.com/help/stats/fitcensemble.html.
The info from there:
NumLearningCycles Number of ensemble learning cycles
100 (default) | positive integer | 'AllPredictorCombinations'
Number of ensemble learning cycles, specified as the comma-separated pair consisting of 'NumLearningCycles' and a positive integer or 'AllPredictorCombinations'.
  • If you specify a positive integer, then, at every learning cycle, the software trains one weak learner for every template object in Learners. Consequently, the software trains NumLearningCycles*numel(Learners) learners.
  • If you specify 'AllPredictorCombinations', then set Method to 'Subspace' and specify one learner only for Learners. With these settings, the software trains learners for all possible combinations of predictors taken NPredToSample at a time. Consequently, the software trains nchoosek(size(X,2),NPredToSample) learners.
The software composes the ensemble using all trained learners and stores them in Mdl.Trained.
For more details, see Tips.
Example: 'NumLearningCycles',500
Data Types: single | double | char | string

カテゴリ

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