---
title: "train(trainingData:parameters:sessionParameters:)"
framework: createml
role: symbol
role_heading: Type Method
path: "createml/mlhandactionclassifier/train(trainingdata:parameters:sessionparameters:)"
---

# train(trainingData:parameters:sessionParameters:)

Begins an asynchronous hand action classifier’s training session.

## Declaration

```swift
static func train(trainingData: MLHandActionClassifier.DataSource, parameters: MLHandActionClassifier.ModelParameters = ModelParameters(), sessionParameters: MLTrainingSessionParameters = _defaultSessionParameters) throws -> MLJob<MLHandActionClassifier>
```

## Parameters

- `trainingData`: An doc://com.apple.createml/documentation/CreateML/MLHandActionClassifier/DataSource instance.
- `parameters`: An doc://com.apple.createml/documentation/CreateML/MLHandActionClassifier/ModelParameters-swift.struct instance you use to configure the model for the training session.
- `sessionParameters`: An doc://com.apple.createml/documentation/CreateML/MLTrainingSessionParameters instance you use to configure the training session.

## Return Value

Return Value An MLJob that represents the hand action classifier’s training session.

## See Also

### Training a hand action classifier asynchronously

- [makeTrainingSession(trainingData:parameters:sessionParameters:)](createml/mlhandactionclassifier/maketrainingsession(trainingdata:parameters:sessionparameters:).md)
- [resume(_:)](createml/mlhandactionclassifier/resume(_:).md)
- [restoreTrainingSession(sessionParameters:)](createml/mlhandactionclassifier/restoretrainingsession(sessionparameters:).md)
