smooth.ES.time_elapsed

property ES.time_elapsed: float

Time taken to fit the model in seconds.

Returns:

Elapsed time in seconds from start to end of the fit() call.

Return type:

float

Raises:

ValueError – If the model has not been fitted yet.

Examples

>>> model = ADAM(model="ZXZ", lags=12)
>>> model.fit(y)
>>> print(f"Fitting took {model.time_elapsed:.2f} seconds")