---
title: "write(_:to:overwrite:)"
framework: createmlcomponents
role: symbol
role_heading: Instance Method
path: "createmlcomponents/supervisedtemporalestimator/write(_:to:overwrite:)"
---

# write(_:to:overwrite:)

Writes the encoded transformer to a file.

## Declaration

```swift
func write(_ transformer: Self.Transformer, to url: URL, overwrite: Bool = true) throws
```

## Parameters

- `transformer`: A transformer created by this estimator.
- `url`: A file URL.
- `overwrite`: A Boolean value indicating whether to overwrite existing files.

## See Also

### Reading and writing

- [read(from:)](createmlcomponents/supervisedtemporalestimator/read(from:).md)
- [Annotation](createmlcomponents/supervisedtemporalestimator/annotation.md)
- [Transformer](createmlcomponents/supervisedtemporalestimator/transformer.md)
