Home

Awesome

darima

Distributed ARIMA Models implemented with Apache Spark

Introduction

DARIMA is designed to facilitate forecasting ultra-long time series by utilizing the industry-standard MapReduce framework. The algorithm is developed on Spark platform and both Python as well as R interfaces.

See darima for developed functions used for implementing DARIMA models.

System requirements

Usage

DARIMA

Run the PySpark code to forecast the time series of the GEFCom2017 by utilizing DARIMA.

  ./bash/run_darima.sh

or simply run

  PYSPARK_PYTHON=/usr/local/bin/python3.7 ARROW_PRE_0_15_IPC_FORMAT=1 spark-submit ./run_darima.py

Note: ARROW_PRE_0_15_IPC_FORMAT=1 is added to instruct PyArrow >= 0.15.0 to use the legacy IPC format with the older Arrow Java that is in Spark 2.3.x and 2.4.x.

ARIMA

Run the R code to forecast the time series of the GEFCom2017 by utilizing the auto.arima() function (used for comparison).

  ./bash/auto_arima.sh

or simply run

  Rscript auto_arima.R

References