Skip to content

Commit

Permalink
Added RDS file with data.
Browse files Browse the repository at this point in the history
  • Loading branch information
MMenchero committed Dec 7, 2023
1 parent 0a02196 commit 8afdcdb
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 29 deletions.
5 changes: 0 additions & 5 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,6 @@ jobs:
R_KEEP_PKG_SOURCE: yes

steps:
- name: Print working directory
run: pwd

- name: List directory contents
run: ls -al

- uses: actions/checkout@v3

Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/dashboard.nixtla.io/api/timegpt.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"message": "success",
"details": "request successful",
"code": "B10",
"requestID": "4J7ERJE3A6",
"requestID": "CLC9LCNZL6",
"support": "If you have questions or need support, please email [email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[
"BE",
"2016-12-31 01:00:00",
42.42660140991211
42.426597595214844
],
[
"BE",
Expand Down Expand Up @@ -55,7 +55,7 @@
[
"DE",
"2017-12-31 01:00:00",
-2.9869308471679688
-2.9869346618652344
],
[
"DE",
Expand Down Expand Up @@ -85,12 +85,12 @@
[
"DE",
"2017-12-31 07:00:00",
-0.427154541015625
-0.4271507263183594
],
[
"FR",
"2016-12-31 00:00:00",
62.130226135253906
62.130218505859375
],
[
"FR",
Expand All @@ -110,12 +110,12 @@
[
"FR",
"2016-12-31 04:00:00",
46.49835968017578
46.49836730957031
],
[
"FR",
"2016-12-31 05:00:00",
49.270896911621094
49.270904541015625
],
[
"FR",
Expand Down Expand Up @@ -160,7 +160,7 @@
[
"NP",
"2018-12-24 06:00:00",
52.234519958496094
52.23451614379883
],
[
"NP",
Expand All @@ -180,12 +180,12 @@
[
"PJM",
"2018-12-24 02:00:00",
20.667821884155273
20.667823791503906
],
[
"PJM",
"2018-12-24 03:00:00",
20.973247528076172
20.97324562072754
],
[
"PJM",
Expand Down Expand Up @@ -216,6 +216,6 @@
"message": "success",
"details": "request successful",
"code": "B10",
"requestID": "RS9XWFA7E6",
"requestID": "6K8VVPHJMH",
"support": "If you have questions or need support, please email [email protected]"
}
Binary file added vignettes/elec.RDS
Binary file not shown.
2 changes: 1 addition & 1 deletion vignettes/mocks/0/dashboard.nixtla.io/api/timegpt.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@
"message": "success",
"details": "request successful",
"code": "B10",
"requestID": "4J7ERJE3A6",
"requestID": "CLC9LCNZL6",
"support": "If you have questions or need support, please email [email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[
"BE",
"2016-12-31 01:00:00",
42.42660140991211
42.426597595214844
],
[
"BE",
Expand Down Expand Up @@ -55,7 +55,7 @@
[
"DE",
"2017-12-31 01:00:00",
-2.9869308471679688
-2.9869346618652344
],
[
"DE",
Expand Down Expand Up @@ -85,12 +85,12 @@
[
"DE",
"2017-12-31 07:00:00",
-0.427154541015625
-0.4271507263183594
],
[
"FR",
"2016-12-31 00:00:00",
62.130226135253906
62.130218505859375
],
[
"FR",
Expand All @@ -110,12 +110,12 @@
[
"FR",
"2016-12-31 04:00:00",
46.49835968017578
46.49836730957031
],
[
"FR",
"2016-12-31 05:00:00",
49.270896911621094
49.270904541015625
],
[
"FR",
Expand Down Expand Up @@ -160,7 +160,7 @@
[
"NP",
"2018-12-24 06:00:00",
52.234519958496094
52.23451614379883
],
[
"NP",
Expand All @@ -180,12 +180,12 @@
[
"PJM",
"2018-12-24 02:00:00",
20.667821884155273
20.667823791503906
],
[
"PJM",
"2018-12-24 03:00:00",
20.973247528076172
20.97324562072754
],
[
"PJM",
Expand Down Expand Up @@ -216,6 +216,6 @@
"message": "success",
"details": "request successful",
"code": "B10",
"requestID": "RS9XWFA7E6",
"requestID": "6K8VVPHJMH",
"support": "If you have questions or need support, please email [email protected]"
}
4 changes: 2 additions & 2 deletions vignettes/nixtlar.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ vignette: >
library(httptest2)
start_vignette("mocks")
options("TIMEGPT_TOKEN"="dummy_token")
options(digits=7)
knitr::opts_chunk$set(
Expand Down Expand Up @@ -71,7 +70,8 @@ You don't need to validate your token every time you set it up, only when you wa
Once your token has been set up, you're ready to use TimeGPT. Here we'll show you how this is done using a dataset that contains prices of different electricity markets.

```{r}
df <- read.table('https://raw.githubusercontent.com/Nixtla/transfer-learning-time-series/main/datasets/electricity-short.csv', sep = ",", header = TRUE)
df <- readRDS("elec.RDS")
#substr(digest::digest(df), 1, 6)
head(df)
```

Expand Down

0 comments on commit 8afdcdb

Please sign in to comment.