darts

A python library for user-friendly forecasting and anomaly detection on time series.

What is darts?

A python library for user-friendly forecasting and anomaly detection on time series.

Overview of darts

What it is

Darts is a Python library for user-friendly forecasting and anomaly detection on time series. It contains a variety of models, from classics such as ARIMA to deep neural networks. The forecasting models can all be used in the same way, using fit() and predict() functions, similar to scikit-learn. The library also makes it easy to backtest models, combine the predictions of several models, and take external data into account. Darts supports both univariate and multivariate time series and models. The ML-based models can be trained on potentially large datasets containing multiple time series, and some of the models offer a rich support for probabilistic forecasting. Darts also offers extensive anomaly detection capabilities.

Key features

  • Forecasting models: a large collection of forecasting models for regression as well as classification tasks; from statistical models (such as ARIMA) to deep learning models (such as N-BEATS).
  • Anomaly detection: the darts.ad module contains a collection of anomaly scorers, detectors and aggregators, which can all be combined to detect anomalies in time series.
  • Multivariate support: TimeSeries can be multivariate, containing multiple time-varying dimensions/columns.
  • Multiple series training (global models): all machine learning based models support being trained on multiple (potentially multivariate) series.
  • Probabilistic support: TimeSeries objects can represent stochastic time series, for instance to get confidence intervals.
  • Past and future covariates support: many models support past-observed and/or future-known covariate time series as inputs.
  • Hierarchical reconciliation: Darts offers transformers to perform reconciliation, making forecasts add up in a way that respects the underlying hierarchy.

Use cases

Darts can be used for forecasting tasks such as predicting future values of a time series (e.g., air passenger numbers). It can also be used for anomaly detection, for example by applying a k-means anomaly scorer and a quantile detector to identify anomalous points in a multivariate time series. The library supports backtesting, combining predictions from several models, and incorporating external data.

Getting started

pip install darts

License and pricing

Darts is open source under the Apache-2.0 license.

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/unit8codarts.svg)](https://yunodb.com/tools/unit8codarts?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/unit8codarts?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/unit8codarts.svg" alt="Featured on YunoDB" height="20"></a>