# helia_edge.layers.preprocessing.normalization_2d

Fixed mean/variance normalization for two-dimensional signals.

## helia_edge.layers.preprocessing.normalization_2d.Normalization2D

`class` · `python`

```python
Normalization2D(
    mean: float | list[float] | tuple[float, ...],
    variance: float | list[float] | tuple[float, ...],
    epsilon: float = 1e-06,
    name: str | None = None,
    **kwargs={},
)
```

Apply fixed mean/variance normalization to 2D inputs.



Base class: [BaseAugmentation2D](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation2D).

Inherited from [BaseAugmentation](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation): [augment_masks()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_masks), [augment_sample()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_sample), [augment_targets()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.augment_targets), [batch_augment()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.batch_augment), [call()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.call), [get_random_transformations()](/helia-edge/reference/api/helia_edge/layers/preprocessing/base_augmentation/#helia_edge.layers.preprocessing.base_augmentation.BaseAugmentation.get_random_transformations).

**Parameters**

| Name | Type | Default | Description |
| --- | --- | --- | --- |
| mean | float \| list[float] \| tuple[float, ...] | Required | Mean value(s) used for normalization. |
| variance | float \| list[float] \| tuple[float, ...] | Required | Variance value(s) used for normalization. |
| epsilon | float | 1e-06 | Small value to avoid division by zero. |
| name | str \| None | None | Layer name. |

Source: `helia_edge/layers/preprocessing/normalization_2d.py:9`

### helia_edge.layers.preprocessing.normalization_2d.Normalization2D.training_only

`attribute` · `python`

```python
training_only = False
```

Source: `helia_edge/layers/preprocessing/normalization_2d.py:11`

### helia_edge.layers.preprocessing.normalization_2d.Normalization2D.mean

`attribute` · `python`

```python
mean: float | list[float] | tuple[float, ...] = mean
```

Source: `helia_edge/layers/preprocessing/normalization_2d.py:33`

### helia_edge.layers.preprocessing.normalization_2d.Normalization2D.variance

`attribute` · `python`

```python
variance: float | list[float] | tuple[float, ...] = variance
```

Source: `helia_edge/layers/preprocessing/normalization_2d.py:34`

### helia_edge.layers.preprocessing.normalization_2d.Normalization2D.epsilon

`attribute` · `python`

```python
epsilon: float = epsilon
```

Source: `helia_edge/layers/preprocessing/normalization_2d.py:35`

### helia_edge.layers.preprocessing.normalization_2d.Normalization2D.augment_samples

`method` · `python`

```python
augment_samples(inputs) -> keras.KerasTensor
```

Normalize a batch of samples.

Source: `helia_edge/layers/preprocessing/normalization_2d.py:37`

### helia_edge.layers.preprocessing.normalization_2d.Normalization2D.get_config

`method` · `python`

```python
get_config()
```

Serialize the configuration.

Source: `helia_edge/layers/preprocessing/normalization_2d.py:48`
