TL;DR
Darts is a new Python library that aims to democratize modern machine learning for time series forecasting by providing a unified, user-friendly API for both classical and state-of-the-art deep learning models. It simplifies complex tasks like handling multidimensional series, training on large datasets, and incorporating external data, making advanced forecasting accessible to a wider audience.
What Problem Does This Paper Address?
Time series forecasting is crucial across many industries, from logistics to healthcare. While classical methods like ARIMA have been around for a while, modern machine learning, especially deep learning, has shown great promise in improving accuracy and handling complex patterns, particularly with large, multidimensional datasets. However, applying these advanced ML techniques often requires significant expertise and custom coding, creating a barrier for practitioners. Existing toolkits tend to focus either on classical methods or offer lower-level APIs for deep learning, lacking a unified, user-friendly interface that bridges the gap between these approaches. Darts aims to fill this gap by providing a high-level, consistent API for a wide range of forecasting models.
Methods
Darts introduces its own TimeSeries data container, designed to be immutable and ensure data integrity with correct shape, type, and sorted time indices. This container wraps xarray.DataArray and supports various time index types. The core innovation lies in its unified high-level forecasting API, where all models, from ARIMA to deep neural networks like N-BEATS and TFT, share a common fit() and predict() interface, similar to scikit-learn. This allows users to seamlessly switch between models, compare their performance, and even ensemble them without needing to understand their internal mechanics. Darts also supports training models on collections of time series, handling past and future covariates, and offers probabilistic forecasting through Monte Carlo samples and a variety of built-in distributions. Neural networks are implemented using PyTorch and support GPU acceleration.
Datasets
The paper mentions using the AirPassengersDataset and MonthlyMilkDataset for demonstration purposes in the usage example. The darts.datasets module also contains a variety of publicly available time series that can be conveniently loaded. No new benchmarks were introduced; rather, Darts aims to provide a unified interface for existing models and datasets.
Key Insights and Ideas
- Unified API for Diverse Models: The most significant insight is the creation of a single, consistent API for a broad spectrum of time series forecasting models, ranging from traditional statistical methods to cutting-edge deep learning architectures. This drastically lowers the barrier to entry for using advanced techniques.
- User-Friendliness as a Priority: Darts prioritizes ease of use, mirroring the success of libraries like scikit-learn. This focus is crucial for broader adoption by practitioners who may not be deep learning experts.
- Flexibility in Data Handling: The library's support for multidimensional series, training on multiple series simultaneously, and incorporating external covariates (past and future) makes it highly adaptable to real-world forecasting challenges.
- Probabilistic Forecasting Made Accessible: Darts simplifies probabilistic forecasting by representing uncertainty via Monte Carlo samples and offering a rich set of distributions, allowing users to capture complex uncertainty patterns without deep statistical knowledge.
Key Results
The paper focuses on the library's design and features rather than presenting empirical results from extensive model comparisons. The primary "result" is the Darts library itself, which offers:
- A consistent
fit()/predict()API for all models. - Support for training on collections of time series.
- Handling of past and future covariates.
- Probabilistic forecasting capabilities with various distributions.
- Integration with PyTorch for GPU acceleration.
The usage example demonstrates fitting a TCN model with default hyperparameters on two distinct series and generating a forecast with arbitrary quantiles, showcasing the library's straightforward application.
Limitations and Future Work
The authors acknowledge that Darts is still under active development. Future work includes:
- Supporting static covariates.
- Providing a collection of models pre-trained on large datasets, similar to what exists in computer vision and NLP domains.
- The list of implemented models is constantly expanding, with an invitation for external contributions.
Summary updated