<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateML",
  "identifier" : "/documentation/CreateML/MLImageClassifier/init(checkpoint:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Create ML",
      "CreateML"
    ],
    "preciseIdentifier" : "s:8CreateML17MLImageClassifierV10checkpointAcA12MLCheckpointV_tKcfc"
  },
  "title" : "init(checkpoint:)"
}
-->

# init(checkpoint:)

Creates an image classifier from a training session checkpoint.

```
init(checkpoint: MLCheckpoint) throws
```

## Parameters

`checkpoint`

A checkpoint from an image classifier training session.

## Discussion

You can only use a checkpoint from an image classifier’s training session if its [`phase`](/documentation/CreateML/MLCheckpoint/phase)
property is [`MLPhase.training`](/documentation/CreateML/MLPhase/training).

---

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)