Categorical splits used for branches in decision
tree
Syntax
v=catsplit(t)
v=catsplit(t,j)
Description
v=catsplit(t) returns an n-by-2
cell array v. Each row in v gives
left and right values for a categorical split. For each branch node j based
on a categorical predictor variable z, the left
child is chosen if z is in v(j,1) and
the right child is chosen if z is in v(j,2).
The splits are in the same order as nodes of the tree. Nodes for these
splits can be found by running cuttype and selecting 'categorical' cuts
from top to bottom.
v=catsplit(t,j) takes an array j of
rows and returns the splits for the specified rows.
See Also
classregtree
 | cat (dataset) | | cdf (gmdistribution) |  |
Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
Get the Interactive Kit