---
title: "decode(from:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/lineartimeseriesforecaster/decode(from:)"
---

# decode(from:)

Decodes a previously fitted model.

## Declaration

```swift
func decode(from decoder: inout any EstimatorDecoder) throws -> LinearTimeSeriesForecaster<Scalar>.Transformer
```
