_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_model()

Get internal sklearn model that is used inside etna class.

predict(df)

Compute predictions from a Sklearn model.

predict_components(df)

Estimate prediction components.

predict_components(df: pandas.core.frame.DataFrame) pandas.core.frame.DataFrame[source]

Estimate prediction components.

Parameters

df (pandas.core.frame.DataFrame) – features dataframe

Returns

dataframe with prediction components

Return type

pandas.core.frame.DataFrame