All Projects → business-science → Sweep

business-science / Sweep

Extending broom for time series forecasting

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Sweep

Timetk
A toolkit for working with time series in R
Stars: ✭ 371 (+159.44%)
Mutual labels:  forecast, tidyverse, time-series, timeseries, time
Neural prophet
NeuralProphet - A simple forecasting model based on Neural Networks in PyTorch
Stars: ✭ 1,125 (+686.71%)
Mutual labels:  forecast, time-series, timeseries, prediction
modeltime.ensemble
Time Series Ensemble Forecasting
Stars: ✭ 65 (-54.55%)
Mutual labels:  time, timeseries, time-series, forecast
Brein Time Utilities
Library which contains several time-dependent data and index structures (e.g., IntervalTree, BucketTimeSeries), as well as algorithms.
Stars: ✭ 94 (-34.27%)
Mutual labels:  time-series, timeseries, time
Btctrading
Time Series Forecast with Bitcoin value, to detect upward/down trends with Machine Learning Algorithms
Stars: ✭ 99 (-30.77%)
Mutual labels:  forecast, time-series, prediction
Tibbletime
Time-aware tibbles
Stars: ✭ 175 (+22.38%)
Mutual labels:  time-series, timeseries, time
timemachines
Predict time-series with one line of code.
Stars: ✭ 342 (+139.16%)
Mutual labels:  timeseries, time-series, prediction
Tidyquant
Bringing financial analysis to the tidyverse
Stars: ✭ 635 (+344.06%)
Mutual labels:  tidyverse, time-series, timeseries
Rnn Time Series Anomaly Detection
RNN based Time-series Anomaly detector model implemented in Pytorch.
Stars: ✭ 718 (+402.1%)
Mutual labels:  forecast, time-series, prediction
Stl Decomp 4j
Java implementation of Seasonal-Trend-Loess time-series decomposition algorithm.
Stars: ✭ 75 (-47.55%)
Mutual labels:  time-series, timeseries
Timbala
Durable time-series database that's API-compatible with Prometheus.
Stars: ✭ 85 (-40.56%)
Mutual labels:  time-series, timeseries
Jhtalib
Technical Analysis Library Time-Series
Stars: ✭ 131 (-8.39%)
Mutual labels:  time-series, time
Timecop
Time series based anomaly detector
Stars: ✭ 65 (-54.55%)
Mutual labels:  forecast, timeseries
Tsanalysis.jl
This package includes basic tools for time series analysis, compatible with incomplete data.
Stars: ✭ 56 (-60.84%)
Mutual labels:  forecast, time-series
Stingray
Anything can happen in the next half hour (including spectral timing made easy)!
Stars: ✭ 94 (-34.27%)
Mutual labels:  time-series, timeseries
Doppelganger
[IMC 2020 (Best Paper Finalist)] Using GANs for Sharing Networked Time Series Data: Challenges, Initial Promise, and Open Questions
Stars: ✭ 97 (-32.17%)
Mutual labels:  time-series, timeseries
Indicators.jl
Financial market technical analysis & indicators in Julia
Stars: ✭ 130 (-9.09%)
Mutual labels:  time-series, timeseries
Tensorflow Lstm Sin
TensorFlow 1.3 experiment with LSTM (and GRU) RNNs for sine prediction
Stars: ✭ 52 (-63.64%)
Mutual labels:  timeseries, prediction
Tennis Crystal Ball
Ultimate Tennis Statistics and Tennis Crystal Ball - Tennis Big Data Analysis and Prediction
Stars: ✭ 107 (-25.17%)
Mutual labels:  forecast, prediction
Griddb
GridDB is a next-generation open source database that makes time series IoT and big data fast,and easy.
Stars: ✭ 1,587 (+1009.79%)
Mutual labels:  time-series, timeseries

sweep

Travis build status codecov CRAN_Status_Badge

Extending broom to time series forecasting

The sweep package extends the broom tools (tidy, glance, and augment) for performing forecasts and time series analysis in the “tidyverse”. The package is geared towards “tidying” the forecast workflow used with Rob Hyndman’s forecast package.

Benefits

  • Designed for modeling and scaling forecasts using the the tidyverse tools in R for Data Science
  • Extends broom for model analysis (ARIMA, ETS, BATS, etc)
  • Tidies the forecast objects for easy plotting and “tidy” data manipulation
  • Integrates timetk to enable dates and datetimes (irregular time series) in the tidied forecast output

Tools

The package contains the following elements:

  1. model tidiers: sw_tidy, sw_glance, sw_augment, sw_tidy_decomp functions extend tidy, glance, and augment from the broom package specifically for models (ets(), Arima(), bats(), etc) used for forecasting.

  2. forecast tidier: sw_sweep converts a forecast object to a tibble that can be easily manipulated in the “tidyverse”.

Making forecasts in the tidyverse

sweep enables converting a forecast object to tibble. The result is ability to use dplyr, tidyr, and ggplot natively to manipulate, analyze and visualize forecasts.

Forecasting multiple time series groups at scale

Often forecasts are required on grouped data to analyse trends in sub-categories. The good news is scaling from one time series to many is easy with the various sw_ functions in combination with dplyr and purrr.

Forecasting multiple models for accuracy

A common goal in forecasting is to compare different forecast models against each other. sweep helps in this area as well.

broom extensions for forecasting

If you are familiar with broom, you know how useful it is for retrieving “tidy” format model components. sweep extends this benefit to the forecast package workflow with the following functions:

  • sw_tidy: Returns model coefficients (single column)
  • sw_glance: Returns accuracy statistics (single row)
  • sw_augment: Returns residuals
  • sw_tidy_decomp: Returns seasonal decompositions
  • sw_sweep: Returns tidy forecast outputs.

The compatibility chart is listed below.

Object sw_tidy() sw_glance() sw_augment() sw_tidy_decomp() sw_sweep()
ar
arima X X X
Arima X X X
ets X X X X
robets X X X X
baggedETS
bats X X X X
tbats X X X X
nnetar X X X
stl X
HoltWinters X X X X
StructTS X X X X
tslm X X X
decompose X
adf.test X X
Box.test X X
kpss.test X X
forecast X

Function Compatibility

Installation

Here’s how to get started.

Development version with latest features:

# install.packages("devtools")
devtools::install_github("business-science/sweep")

Further Information

The sweep package includes several vignettes to help users get up to speed quickly:

  • SW00 - Introduction to sweep
  • SW01 - Forecasting Time Series Groups in the tidyverse
  • SW02 - Forecasting Using Multiple Models
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].