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

# encode(_:to:)

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

## Declaration

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

## See Also

### Encoding and Decoding

- [decode(from:)](createmlcomponents/transformertoestimatoradaptor/decode(from:).md)
