Instance Method

evaluation(on:featureColumns:labelColumn:recordingFileColumn:)

Generates metrics describing the activity classifier’s performance on labelled activities in a data table.

Declaration

func evaluation(on testingData: MLDataTable, featureColumns: [String], labelColumn: String, recordingFileColumn: String) -> MLClassifierMetrics

Parameters

testingData

The activity data that you provide to test this model, contained in an MLDataTable.

featureColumns

The names of the columns containing the sensor data.

labelColumn

The name of the column containing the activity labels.

recordingFileColumn

The name of the column containing the recording file names.

Return Value

The metrics that indicate the performance of the activity classifier when operating on the input data set.

See Also

Evaluating an Activity Classifier

func evaluation(on: MLActivityClassifier.DataSource, featureColumns: [String], labelColumn: String?, recordingFileColumn: String?) -> MLClassifierMetrics

Generates metrics describing the activity classifier’s performance on labelled activities in a data source.