actableai.timeseries.models.ext.r.RForecastPredictor(freq: str, prediction_length: int, method_name: str = 'ets', period: Optional[int] = None, trunc_length: Optional[int] = None, params: Optional[Dict] = None)¶Bases: gluonts.model.predictor.RepresentablePredictor
Wrapper for calling the `R forecast package.
<http://pkg.robjhyndman.com/forecast/>`_.
The RForecastPredictor is a thin wrapper for calling the R forecast package. In order to use it you need to install R and run:
pip install 'rpy2>=2.9.*,<3.*'
R -e 'install.packages(c("forecast", "nnfor"), repos="https://cloud.r-project.org")'
predict(dataset: gluonts.dataset.Dataset, num_samples: int = 100, intervals: Optional[List] = None, save_info: bool = False, **kwargs) Iterator[Union[gluonts.model.forecast.SampleForecast, gluonts.model.forecast.QuantileForecast]]¶Compute forecasts for the time series in the provided dataset. This method is not implemented in this abstract class; please use one of the subclasses. :param dataset: The dataset containing the time series to predict.