MATLAB File Help: cv.DTrees/train Index
cv.DTrees/train

Trains a decision tree

status = model.train(samples, responses)
status = model.train(csvFilename, [])
[...] = model.train(..., 'OptionName', optionValue, ...)

Input

Output

Options

Options for Data (first variant with samples and reponses)

Options for Data (second variant for loading CSV file)

The method trains the cv.DTrees model.

The method follow the generic train conventions. Both data layouts ('Row' and 'Col') are supported, as well as sample and variable subsets, missing measurements, arbitrary combinations of input and output variable types, and so on.

Depending on the responses data type (or the specified VarType for the response), the method solves a classification problem for categorical labels, otherwise the training is treated as a regression problem for numerical responses.

The function is parallelized with the TBB library.

See also
Method Details
Access public
Sealed false
Static false