smooth.AutoOM.fit

AutoOM.fit(y, X=None)

Fit all candidates and return the best model by IC.

Parameters:
  • y (ndarray[tuple[Any, ...], dtype[TypeVar(_ScalarT, bound= generic)]]) – Observation vector (binarised internally: any non-zero → 1).

  • X (ndarray[tuple[Any, ...], dtype[TypeVar(_ScalarT, bound= generic)]] | None) – Optional regressor matrix forwarded to every candidate.

Returns:

The best-fitting occurrence model, with time_elapsed_ set to the total selection time in seconds.

Return type:

OM | OMG


Parent Class: AutoOM