smooth.AutoOM.fit

AutoOM.fit(y, X=None)

Fit all candidates and return the best model by IC.

Parameters:
  • y (NDArray) – Observation vector (binarised internally: any non-zero → 1).

  • X (Optional[NDArray]) – 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:

Union[OM, OMG]


Parent Class: AutoOM