Contents

evaluation(on:featureColumns:labelColumn:recordingFileColumn:)

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

Declaration

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

Parameters

  • testingData:

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

  • featureColumns:

    The names of the columns that contain sensor data.

  • labelColumn:

    The name of the column that contain the activity labels. The method ignores this parameter if the data source uses a labeled directory.

  • recordingFileColumn:

    The name of the column that contain the recording file names. The method ignores this parameter if the data source uses a labeled directory.

Return Value

An MLClassifierMetrics instance.

See Also

Evaluating an activity classifier