<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLUpdateProgressEvent/init(rawValue:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "s:So21MLUpdateProgressEventV8rawValueABSi_tcfc"
  },
  "title" : "init(rawValue:)"
}
-->

# init(rawValue:)

Creates a progress event for the given integer.

```
init(rawValue: Int)
```

## Discussion

You do not use this initializer directly. Get update event types from the type properties, such as [`trainingBegin`](/documentation/CoreML/MLUpdateProgressEvent/trainingBegin), [`miniBatchEnd`](/documentation/CoreML/MLUpdateProgressEvent/miniBatchEnd), or [`epochEnd`](/documentation/CoreML/MLUpdateProgressEvent/epochEnd).

---

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)