tempor.methods.prediction.temporal.regression package¶
Submodules¶
Module contents¶
Temporal regression estimators.
- class tempor.methods.prediction.temporal.regression.BaseTemporalRegressor(**params: Any)[source]¶
Bases:
BasePredictorBase class for temporal regression estimators.
- Parameters:¶
- **params : Any
Parameters and defaults as defined in
BasePredictorParams.
- fit(data: BaseDataset, *args: Any, **kwargs: Any) Self[source]¶
Fit the method to the data.
- Parameters:¶
- data : dataset.BaseDataset¶
The dataset to fit the model to.
- *args : Any
Additional arguments to pass to the
_fitmethod.- **kwargs : Any
Additional keyword arguments to pass to the
_fitmethod.
- Returns:¶
The fitted model.
- Return type:¶
Self
-
predict(data: PredictiveDataset, n_future_steps: int, *args: Any, time_delta: int =
1, **kwargs: Any) TimeSeriesSamplesBase[source]¶ Predicts the target variable for the given data.
- Parameters:¶
- data : dataset.PredictiveDataset¶
The dataset to predict on.
- *args : Any
Additional positional arguments passed to the implementation (
_predict).- **kwargs : Any
Additional keyword arguments passed to the implementation (
_predict).
- Returns:¶
The predictions.
- Return type:¶
Any