<!--
{
  "availability" : [
    "macOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLActionClassifier/makeTrainingSession(trainingData:parameters:sessionParameters:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML18MLActionClassifierV19makeTrainingSession12trainingData10parameters17sessionParametersAA010MLTrainingG0CyACGAC0I6SourceO_AC05ModelL0VAA0mgL0VtKFZ"
  },
  "title" : "makeTrainingSession(trainingData:parameters:sessionParameters:)"
}
-->

# makeTrainingSession(trainingData:parameters:sessionParameters:)

Creates an asynchronous training session for an action classifier.

```
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 [`MLActionClassifier.ModelParameters`](/documentation/CreateML/MLActionClassifier/ModelParameters-swift.struct)
instance you use to configure the model for the training session.

`sessionParameters`

An [`MLTrainingSessionParameters`](/documentation/CreateML/MLTrainingSessionParameters) instance you use to
configure the training session.

## Return Value

An [`MLTrainingSession`](/documentation/CreateML/MLTrainingSession) that represents the action classifier training session.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)