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

# decodeWithOptimizer(from:)

Decodes a previously fitted transformer with an optimizer.

## Declaration

```swift
func decodeWithOptimizer(from decoder: inout any EstimatorDecoder) throws -> FullyConnectedNetworkClassifier<Scalar, Label>.Transformer
```

## Parameters

- `decoder`: A decoder for the estimator.

## Return Value

Return Value A fully connected network classifier model.
