Contents

labeledSensorData(featureColumns:labelColumn:recordingFileColumn:)

Generates a data table from the contents of the data source.

Declaration

func labeledSensorData(featureColumns: [String], labelColumn: String? = nil, recordingFileColumn: String? = nil) throws -> MLDataTable

Parameters

Return Value

A new MLDataTable instance.

Discussion

The labelColumn and recordingFileColumn parameters are optional if the data source is MLActivityClassifier.DataSource.labeledDirectories(at:). If nil, the method names the data table’s label column and data file column “label” and “recordingFile”, respectively.

See Also

Generating data tables from a data source