---
title: "decodeWithOptimizer(from:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/standardscaler/decodewithoptimizer(from:)"
---

# decodeWithOptimizer(from:)

Reads the encoded transformer with a decoder.

## Declaration

```swift
func decodeWithOptimizer(from decoder: inout any EstimatorDecoder) throws -> StandardScaler<Element>.Transformer
```

## Parameters

- `decoder`: A decoder.

## Return Value

Return Value The decoded transformer.
