---
title: ImputeTransformer
framework: createmlcomponents
role: symbol
role_heading: Structure
path: createmlcomponents/imputetransformer
---

# ImputeTransformer

A transformer that replaces missing values with a pre-defined value.

## Declaration

```swift
struct ImputeTransformer<Element> where Element : Decodable, Element : Encodable
```

## Topics

### Creating a transformer

- [init(value:)](createmlcomponents/imputetransformer/init(value:).md)

### Getting the impute value

- [value](createmlcomponents/imputetransformer/value.md)

### Performing the transformation

- [applied(to:eventHandler:)](createmlcomponents/imputetransformer/applied(to:eventhandler:).md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Escapable](swift/escapable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [Transformer](createmlcomponents/transformer.md)

## See Also

### Preprocessors

- [LinearTransformer](createmlcomponents/lineartransformer.md)
- [OneHotEncoder](createmlcomponents/onehotencoder.md)
- [OrdinalEncoder](createmlcomponents/ordinalencoder.md)
- [NumericImputer](createmlcomponents/numericimputer.md)
- [Reshaper](createmlcomponents/reshaper.md)
- [CategoricalImputer](createmlcomponents/categoricalimputer.md)
- [OptionalUnwrapper](createmlcomponents/optionalunwrapper.md)
