_LinearAdapter¶
- class _LinearAdapter(regressor: sklearn.base.RegressorMixin)[source]¶
Bases:
etna.models.sklearn._SklearnAdapter
- 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 ¶
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 ¶
Get internal sklearn model that is used inside etna class.
- Returns
Internal model
- Return type
- predict(df: pandas.core.frame.DataFrame) numpy.ndarray ¶
Compute predictions from a Sklearn model.
- Parameters
df (pandas.core.frame.DataFrame) – Features dataframe
- Returns
Array with predictions
- Return type
numpy.ndarray