<!--
{
  "documentType" : "article",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/OrdinalEncoder/UpdatableEstimator-Implementations",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "UpdatableEstimator Implementations"
}
-->

# UpdatableEstimator Implementations

## Topics

### Instance Methods

[`func decodeWithOptimizer(from: inout any EstimatorDecoder) throws -> OrdinalEncoder<Category>.Transformer`](/documentation/CreateMLComponents/OrdinalEncoder/decodeWithOptimizer(from:))

Reads the encoded transformer with a decoder.

[`func encodeWithOptimizer(OrdinalEncoder<Category>.Transformer, to: inout any EstimatorEncoder) throws`](/documentation/CreateMLComponents/OrdinalEncoder/encodeWithOptimizer(_:to:))

Encodes the transformer to an encoder.

[`func makeTransformer() -> OrdinalEncoder<Category>.Transformer`](/documentation/CreateMLComponents/OrdinalEncoder/makeTransformer())

Creates a default-initialized transformer suitable for incremental fitting.

[`func update(inout OrdinalEncoder<Category>.Transformer, with: some Sequence<Optional<Category>>, eventHandler: EventHandler?) throws`](/documentation/CreateMLComponents/OrdinalEncoder/update(_:with:eventHandler:))

Updates a transformer with a new sequence of examples.

---

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)