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’sfit. Models whosefitneeds more thanXandy– for example the panel index arrays ofETWFERegression– pass them here, so experiments can still call the adapter unconditionally instead of reaching past it toself.model. A backend that cannot use a given keyword raisesTypeErrorfrom the underlying call.
- Return type: