I'm using Matlab's fitensemble function on a data with 8 features and 5000 samples. With the following command I can train a model:
ada= fitensemble(datafeatures,dataclass,'AdaBoostM1',200,'tree');
My question: How can I create weak learners with one single split (two leafs instead of many leafs)?
I know the following command controls the way the trees are created:
t = ClassificationTree.template
, but I only see minimal parameters for tree depth. How can I set an upper limit?