Structure

MLRandomForestClassifier.ModelParameters

Parameters that affect the process of training a model.

Declaration

struct MLRandomForestClassifier.ModelParameters

See Also

Creating and Training a Random Forest Classifier

init(trainingData: MLDataTable, targetColumn: String, featureColumns: [String]?, parameters: MLRandomForestClassifier.ModelParameters)

Creates a Random Forest Classifier from the feature columns in the training data to predict the categories in the target column.

let modelParameters: MLRandomForestClassifier.ModelParameters

The underlying parameters used when training the model.

var targetColumn: String

The name of the column you selected at initialization to define which categories the classifier predicts.

var featureColumns: [String]

The names of the columns you selected at initialization to train the classifier.