_SklearnAdapter¶
- class _SklearnAdapter(regressor: sklearn.base.RegressorMixin)[source]¶
Bases:
etna.models.base.BaseAdapter
- Inherited-members
- Parameters
regressor (sklearn.base.RegressorMixin) –
Methods
fit
(df, regressors)Fit Sklearn model.
Get internal sklearn model that is used inside etna class.
predict
(df)Compute predictions from a Sklearn model.
Estimate prediction components.
- fit(df: pandas.core.frame.DataFrame, regressors: List[str]) etna.models.sklearn._SklearnAdapter [source]¶
Fit Sklearn model.
- Parameters
df (pandas.core.frame.DataFrame) – Features dataframe
regressors (List[str]) – List of the columns with regressors
- Returns
Fitted model
- Return type
- get_model() sklearn.base.RegressorMixin [source]¶
Get internal sklearn model that is used inside etna class.
- Returns
Internal model
- Return type