Creates an activity classifier from a training set represented by a data table.
- macOS 10.14+
- Xcode 11.0+
- Create ML
The activity data that you provide to train this model, contained in an
The names of the columns containing the sensor data.
The name of the column containing the activity labels.
The name of the column containing the recording file names.
Parameters that you use to configure model training.
Use this initializer to create an activity classifier with an
MLData. To configure the training process, initialize the activity classifier with an
MLActivity instance. For example, you can explicitly define the validation data set instead of allowing the model to choose a random selection of your training data. Alternatively, set
nil to allow the activity classifier to choose the validation data for you from among your training data. This lets you set other parameters—like
batch—to non-default values.