| Contents | Index |
Resume training learners on cross-validation folds
ens1 = resume(ens,nlearn)
ens1 = resume(ens,nlearn,Name,Value)
ens1 = resume(ens,nlearn) trains ens in every fold for nlearn more cycles. resume uses the same training options fitensemble used to create ens.
ens1 = resume(ens,nlearn,Name,Value) trains ens with additional options specified by one or more Name,Value pair arguments.
ens |
A cross-validated classification ensemble. ens is the result of either:
|
nlearn |
A positive integer, the number of cycles for additional training of ens. |
Specify optional comma-separated pairs of Name,Value arguments, where Name is the argument name and Value is the corresponding value. Name must appear inside single quotes (' '). You can specify several name and value pair arguments in any order as Name1,Value1,...,NameN,ValueN.
ens1 |
The cross-validated classification ensemble ens, augmented with additional training. |
Train a partitioned classification ensemble for 10 cycles. Examine the error. Then train for 10 more cycles and examine the new error.
load ionosphere
cvens = fitensemble(X,Y,'GentleBoost',10,'Tree',...
'crossval','on');
L = kfoldLoss(cvens)
L =
0.0883
cvens = resume(cvens,10);
L = kfoldLoss(cvens)
L =
0.0769The ensemble has less cross-validation error after training for ten more cycles.
kfoldEdge | kfoldLoss | kfoldMargin | kfoldPredict
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |