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

# makeTrainingSession(trainingData:parameters:sessionParameters:)

Creates an asynchronous training session for an action classifier.

## Declaration

```swift
static func makeTrainingSession(trainingData: MLActionClassifier.DataSource, parameters: MLActionClassifier.ModelParameters = .init(), sessionParameters: MLTrainingSessionParameters = _defaultSessionParameters) throws -> MLTrainingSession<MLActionClassifier>
```

## Parameters

- `trainingData`: A collection of labeled videos represented by a data source.
- `parameters`: An doc://com.apple.createml/documentation/CreateML/MLActionClassifier/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 MLTrainingSession that represents the action classifier training session.

## See Also

### Training an action classifier asynchronously

- [train(trainingData:parameters:sessionParameters:)](createml/mlactionclassifier/train(trainingdata:parameters:sessionparameters:).md)
- [resume(_:)](createml/mlactionclassifier/resume(_:).md)
- [restoreTrainingSession(sessionParameters:)](createml/mlactionclassifier/restoretrainingsession(sessionparameters:).md)
