Too big classification tree
2 views (last 30 days)
Hello All. I am trying to create classification tree in Matlab using function fitctree. I am using version of Matlab R2014b. But my tree is big and intricate. Could you advise me how should i resolve this problem? I know about MaxNumSplits but it is supported by version Matlab 2015...Thank you for your help and advices...
MHN on 18 Feb 2016
There are many ways to do that, e.g. compare the following tree1, tree2, and tree3. It depends on your problem in hand, which one you should use.
tree1 = fitctree(X,Y);
tree2 = prune(tree1,'level',6);
tree3 = fitctree(X,Y, 'MinParentSize', 200);