ModelAdapter.fit#

abstractmethod ModelAdapter.fit(X, y, *, coords=None, **fit_kwargs)[source]#

Fit the model with backend-appropriate conventions.

Parameters:
  • X (Any) – Predictor matrix.

  • y (Any) – Outcome vector or matrix.

  • coords (dict[str, Any] | None) – Coordinate metadata for PyMC models. Ignored by sklearn backends.

  • **fit_kwargs (Any) – Backend-specific keyword arguments forwarded to the underlying model’s fit. Models whose fit needs more than X and y – for example the panel index arrays of ETWFERegression – pass them here, so experiments can still call the adapter unconditionally instead of reaching past it to self.model. A backend that cannot use a given keyword raises TypeError from the underlying call.

Return type:

Any