Regressor

class flexparameterize.regression.base.Regressor(*args, **kwargs)

Structural contract every pluggable regressor conforms to.

Conformance is structural (isinstance only checks the methods exist — call them to verify behavior, not just presence). to_surrogate_spec takes **kwargs because different regressors need different unit metadata at that boundary; each regressor documents its own keywords.

fit(X: DataFrame, y: DataFrame) → Regressor

Fit this regressor on X/y and return self.

to_fit_result() → FitResult

Return this fit’s FitResult, once fitted.

to_surrogate_spec(**kwargs) → SurrogateSpec

Return this fit as a persistable SurrogateSpec, once fitted.