MMM.get_scales_as_xarray#

MMM.get_scales_as_xarray()[source]#

Return the saved scaling factors as xarray DataArrays.

Returns:
dict[str, xr.DataArray]

A dictionary containing the scaling factors for channels and target.

Examples

>>> mmm = MMM(
    date_column="date",
    channel_columns=["channel_1", "channel_2"],
    target_column="target",
)
>>> mmm.build_model(X, y)
>>> mmm.get_scales_as_xarray()