source
FugueBackend
*FugueBackend for Distributed Computation. Source code. This class uses Fugue backend capable of distributing computation on Spark, Dask and Ray without any rewrites.*
source
FugueBackend.forecast
*Memory Efficient core.StatsForecast predictions with FugueBackend. This method uses Fugue’s transform function, in combination with
core.StatsForecast’s forecast to efficiently fit a list of
StatsForecast models.*
source
FugueBackend.cross_validation
*Temporal Cross-Validation with core.StatsForecast and FugueBackend. This method uses Fugue’s transform function, in combination with
core.StatsForecast’s cross-validation to efficiently fit a list of
StatsForecast models through multiple training windows, in either
chained or rolled manner.
StatsForecast.models’ speed along with Fugue’s distributed computation
allow to overcome this evaluation technique high computational costs.
Temporal cross-validation provides better model’s generalization
measurements by increasing the test’s length and diversity.*
Dask Distributed Predictions
Here we provide an example for the distribution of theStatsForecast
predictions using Fugue to execute the code in a Dask cluster.
To do it we instantiate the
FugueBackend
class with a DaskExecutionEngine.
StatsForecast
instantiation.
Distributed Forecast
For extremely fast distributed predictions we use FugueBackend as backend that operates like the original StatsForecast.forecast method. It receives as input a pandas.DataFrame with columns [unique_id,ds,y] and exogenous, where the ds (datestamp)
column should be of a format expected by Pandas. The y column must be
numeric, and represents the measurement we wish to forecast. And the
unique_id uniquely identifies the series in the panel data.
Distributed Cross-Validation
For extremely fast distributed temporcal cross-validation we usecross_validation
method that operates like the original
StatsForecast.cross_validation
method.

