swiftemulator.mean_models.polynomial module
A basic polynomial model based on the scikit-learn multidimensional mean model.
- class swiftemulator.mean_models.polynomial.PolynomialMeanModel(degree: int = 1)[source]
Bases:
swiftemulator.mean_models.base.MeanModelA polynomial mean model; fits a linear model to the multidimensional parameter space.
Under the hood, this uses the
sklearn.linear_model.lm.- Parameters
degree (int, optional) – Maximal degree of the polynomial surface, default 1 (linear in each parameter).
- degree: int
- model: Optional[Union[sklearn.linear_model._base.LinearRegression, sklearn.linear_model._coordinate_descent.Lasso]] = None