---
title: "encodeWithOptimizer(_:to:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/transformertoupdatableestimatoradaptor/encodewithoptimizer(_:to:)"
---

# encodeWithOptimizer(_:to:)

Does nothing since this estimator uses a pre-defined transformer.

## Declaration

```swift
func encodeWithOptimizer(_ transformer: Transformer, to encoder: inout any EstimatorEncoder) throws
```

## See Also

### Encoding and decoding

- [encode(_:to:)](createmlcomponents/transformertoupdatableestimatoradaptor/encode(_:to:).md)
- [decode(from:)](createmlcomponents/transformertoupdatableestimatoradaptor/decode(from:).md)
- [decodeWithOptimizer(from:)](createmlcomponents/transformertoupdatableestimatoradaptor/decodewithoptimizer(from:).md)
