-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
60 lines (41 loc) · 2.17 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# TimeGPTapi
<!-- badges: start -->
[](https://lifecycle.r-lib.org/articles/stages.html) [](/~https://github.com/daniGiro/TimeGPTapi) [](https://cran.r-project.org/web/licenses/GPL-3)
<!-- badges: end -->
`TimeGPT` is a generative pre-trained transformer model for time series analysis ([https://docs.nixtla.io/docs](docs.nixtla.io/docs)) developed by **Nixtla** ([https://nixtla.io](https://nixtla.io)). It was trained on the largest collection of public time series and can predict the future values of a single time series based on the provided. This R package provides an R interface to interact with the `TimeGPT API`.
## Installation
You can install the development version of TimeGPTapi from [GitHub](/~https://github.com/) with:
``` r
# install.packages("devtools")
devtools::install_github("danigiro/TimeGPTapi")
```
## Quickstart
This is a basic example which shows you how to solve a common problem:
```{r example, eval = FALSE}
library(TimeGPTapi)
# Loading the air passengers dataset and the time vector
y <- AirPassengers
time_air <- zoo::as.Date(AirPassengers)
# Set the TimeGPT API token
set_TimeGPT_token("<TIMEGPT_TOKEN>")
obj <- TimeGPT(AirPassengers, time_air, freq = "M", verbose = TRUE, historic = TRUE)
# Forecasting the next 12 horizons using TimeGPT
fore <- forecast(obj2, h = 12)
```
## Todo
- Implement external regressor (`xreg`)
- Multivariate TimeGPT
## Copyright
This R package is released under the *GNU General Public License v3.0*. The `TimeGPT` model and `API` are proprietary technologies developed by **Nixtla**, and all rights are reserved. The use of the `TimeGPT API` is subject to Nixtla's terms and conditions, which can be found at [https://nixtla.io](https://nixtla.io).