<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/google/meridian/blob/v2.2.1/meridian/model/calibration/base.py#L157-L249) |

Channel-level container composing one or more incrementality experiment sources.

```python
meridian.model.calibration.base.CalibrationInput(
    *,
    channel_name: str,
    total_spend: float,
    baseline_prior: (backend.tfd.Distribution | None) = None,
    adstock_decay_spec: str = constants.GEOMETRIC_DECAY,
    alpha: float = calibration_constants.DEFAULT_ALPHA
)
```

<br />

<br />

<br />

| ## Attributes ||
|---|---|
| `channel_name` | Name of the channel for which the calibration information is associated. |
| `total_spend` | The total spend of the channel in the Meridian model. |
| `baseline_prior` | The `tfd.Distribution` representing the baseline prior for the KPI. If provided, the baseline prior will regularize the incrementality experiment results. Default is None. If None, an improper uniform distribution over the positive real numbers is used. |
| `adstock_decay_spec` | Adstock decay specification used in duration adjustments. This can be either `'geometric'` or `'binomial'`, or a Mapping from channel name to the decay function string. Default is `'geometric'`. |
| `alpha` | The decay rate parameter (between 0 and 1 inclusive) used for duration adjustments. It determines the proportion of the total media effect captured during the experiment window. This can be either a float or a Mapping from channel name to float. Default is `0.5`. |
| `configs` | The registered calibration configs. |

<br />

## Methods

### `add_calibration_data`

[View source](https://github.com/google/meridian/blob/v2.2.1/meridian/model/calibration/base.py#L225-L244)

```python
add_calibration_data(
    config: CalibrationData
) -> None
```

Attaches a resolved `CalibrationData` to this channel container.

<br />

<br />

<br />

| Args ||
|---|---|
| `config` | The `CalibrationData` to attach. |

<br />

<br />

<br />

<br />

| Raises ||
|---|---|
| `ValueError` | If the experiment spend exceeds the total channel spend. |

<br />

### `__eq__`

```python
__eq__(
    other
)
```

Return self==value.

<br />

<br />

<br />

| ## Class Variables ||
|---|---|
| adstock_decay_spec | `'geometric'` |
| alpha | `0.5` |
| baseline_prior | `None` |

<br />