smooth.ADAM.constant_value

property ADAM.constant_value: float | None

$constant).

The estimated constant term in the model, if one was included.

Returns:

Constant term value, or None if no constant was estimated.

Return type:

Optional[float]

Raises:

ValueError – If the model has not been fitted yet.

Examples

>>> model = ADAM(model="AAN", constant=True)
>>> model.fit(y)
>>> if model.constant_value is not None:
...     print(f"Constant: {model.constant_value:.4f}")
Type:

Constant/intercept term value (R