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

# train(trainingData:parameters:sessionParameters:)

Begins an asynchronous hand pose classifier’s training session.

## Declaration

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

## Parameters

- `trainingData`: An doc://com.apple.createml/documentation/CreateML/MLHandPoseClassifier/DataSource instance.
- `parameters`: An doc://com.apple.createml/documentation/CreateML/MLHandPoseClassifier/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 pose classifier’s training session.

## See Also

### Training a hand pose classifier asynchronously

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