---
title: "encode(_:to:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/updatableestimatortosupervisedadaptor/encode(_:to:)"
---

# encode(_:to:)

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

## Declaration

```swift
func encode(_ transformer: UpdatableEstimatorToSupervisedAdaptor<Estimator, Annotation>.Transformer, to encoder: inout any EstimatorEncoder) throws
```

## See Also

### Encoding and decoding

- [decode(from:)](createmlcomponents/updatableestimatortosupervisedadaptor/decode(from:).md)
- [encodeWithOptimizer(_:to:)](createmlcomponents/updatableestimatortosupervisedadaptor/encodewithoptimizer(_:to:).md)
- [decodeWithOptimizer(from:)](createmlcomponents/updatableestimatortosupervisedadaptor/decodewithoptimizer(from:).md)
