RandomForestClassifierModel test¶
-
test
(self, frame, label_column, observation_columns=None)¶ [ALPHA] Predict test frame labels and return metrics.
Parameters: frame : <bound method AtkEntityType.__name__ of <trustedanalytics.rest.jsonschema.AtkEntityType object at 0x7f9e686f3fd0>>
The frame whose labels are to be predicted
label_column : unicode
Column containing the true labels of the observations
observation_columns : list (default=None)
Column(s) containing the observations whose labels are to be predicted. By default, we predict the labels over columns the RandomForest was trained on.
Returns: : dict
An object with classification metrics. The data returned is composed of multiple components:
double : accuracytable : confusion_matrixdouble : f_measuredouble : precisiondouble : recallPredict the labels for a test frame and run classification metrics on predicted and target labels.