# `MOATransformer`

### *class* capymoa.stream.preprocessing.MOATransformer[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/stream/preprocessing/transformer.py#L42)

Bases: [`Transformer`](capymoa.stream.preprocessing.Transformer.md#capymoa.stream.preprocessing.Transformer)

#### \_\_init_\_(schema=None, moa_filter: StreamFilter | [None](https://docs.python.org/3/builtins/constants.html#None) = None, CLI=None)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/stream/preprocessing/transformer.py#L43)

#### get_input_schema() → [Schema](capymoa.stream.Schema.md#capymoa.stream.Schema)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/stream/preprocessing/transformer.py#L161)

Return the schema of instances entering this transformer.

#### get_moa_filter()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/stream/preprocessing/transformer.py#L168)

#### get_schema() → [Schema](capymoa.stream.Schema.md#capymoa.stream.Schema)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/stream/preprocessing/transformer.py#L153)

Return the schema of instances leaving this transformer.

Falls back to the input schema while the underlying MOA filter has not
published a header yet.

#### restart()[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/stream/preprocessing/transformer.py#L165)

#### transform_instance(instance) → [Instance](capymoa.core.Instance.md#capymoa.core.Instance)[[source]](https://github.com/adaptive-machine-learning/CapyMOA/blob/3e255b1/src/capymoa/stream/preprocessing/transformer.py#L128)
