TimeGPT in R
Using TimeGPT for time series forecasting in the R programming language
Introduction
TimeGPT-1: The first foundation model for time series forecasting and anomaly detection.
The nixtlar
package is the R interface to TimeGPT, allowing you to perform state-of-the-art time series forecasting directly from R. TimeGPT is a production-ready, generative pretrained transformer for time series forecasting, developed by Nixtla. It is capable of accurately predicting various domains such as retail, electricity, finance, and IoT, with just a few lines of code. Additionally, it can detect anomalies in time series data.
Version 0.6.2 of nixtlar is now available on CRAN! This version introduces support for TimeGEN-1, TimeGPT optimized for Azure, along with enhanced date support, business-day frequency inference, and various bug fixes.
How to use
To learn how to use nixtlar
, please refer to the
documentation.
To view directly on CRAN, please use this link.
The nixtlar
package requires an API key. Get yours on the Nixtla Dashboard.
Installation
Quick Example
Anomaly Detection Example
Features and Capabilities
TimeGPT through the nixtlar
package provides:
- Zero-shot Inference: Generate forecasts and detect anomalies with no prior training
- Fine-tuning: Enhance model performance for your specific datasets
- Add Exogenous Variables: Incorporate additional variables like special dates or events to improve accuracy
- Multiple Series Forecasting: Simultaneously forecast multiple time series
- Custom Loss Function: Tailor the fine-tuning process with specific performance metrics
- Cross Validation: Implement out-of-the-box validation techniques
- Prediction Intervals: Quantify uncertainty in your predictions
- Irregular Timestamps: Handle data with non-uniform intervals
How to Cite
If you find TimeGPT useful for your research, please consider citing:
Support
If you have questions or need support, please email support@nixtla.io
.
TimeGPT is closed source. However, this SDK is open source and available under the Apache 2.0 License.