FUNCTION REFERENCE
templateTree
Create a tree learner template.
Create a tree learner template.
Syntax
t = templateTree(Name,Value)Pass the template as Learners to fitcecoc, fitcensemble or fitrensemble. Supported options are MaxNumSplits, MinLeafSize, MinParentSize and PredictorSelection='allsplits'.
Example
t=templateTree()Example
t=templateTree('MaxNumSplits',1); m=fitrensemble((0:9)',(0:9)','Learners',t,'NumLearningCycles',3); predict(m,[1;8])Differences from MATLAB: Templates are immutable value structs; heterogeneous learner arrays are unsupported.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.