<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLPhase",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "Create ML"
    ],
    "preciseIdentifier" : "s:8CreateML7MLPhaseO"
  },
  "title" : "MLPhase"
}
-->

# MLPhase

The possible states of a training session.

```
enum MLPhase
```

## Topics

### Retrieving session phases

[`case initialized`](/documentation/CreateML/MLPhase/initialized)

The training session is in the initial idle state before extracting
features and training.

[`case extractingFeatures`](/documentation/CreateML/MLPhase/extractingFeatures)

The training session is extracting features from the training dataset.

[`case training`](/documentation/CreateML/MLPhase/training)

The training session is training a model from the features it extracted
from the training dataset.

[`case evaluating`](/documentation/CreateML/MLPhase/evaluating)

The training session is evaluating the model it trained.

[`case inferencing`](/documentation/CreateML/MLPhase/inferencing)

The training session is using the model to make a prediction.

## Relationships

### Conforms To

[`Hashable`](/documentation/Swift/Hashable)

[`Escapable`](/documentation/Swift/Escapable)

[`Encodable`](/documentation/Swift/Encodable)

[`Equatable`](/documentation/Swift/Equatable)

[`Sendable`](/documentation/Swift/Sendable)

[`Decodable`](/documentation/Swift/Decodable)

[`Copyable`](/documentation/Swift/Copyable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

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)