-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added test for timegpt_forecast function.
- Loading branch information
Showing
14 changed files
with
52 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: nixtlar | ||
Title: R SDK For Nixtla's TimeGPT | ||
Version: 0.0.0.9000 | ||
Version: 1.0.0 | ||
Authors@R: | ||
person("Mariana", "Menchero", , "[email protected]", role = c("aut", "cre")) | ||
Description: An SDK to interface with Nixtla's TimeGPT from R. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,19 @@ | ||
url: https://mmenchero.github.io/nixtlar/ | ||
template: | ||
bootstrap: 5 | ||
params: | ||
github: | ||
repo: mmenchero/nixtlar | ||
|
||
navbar: | ||
title: "nixtlar" | ||
left: | ||
- text: "Home" | ||
href: index.html | ||
- text: "Get Started" | ||
href: articles/get-started.html | ||
- text: "Reference" | ||
href: reference/index.html | ||
- text: "Articles" | ||
menu: | ||
- text: "Anomaly Detection" |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ | |
[ | ||
"BE", | ||
"2016-12-31 01:00:00", | ||
42.426597595214844 | ||
42.42660140991211 | ||
], | ||
[ | ||
"BE", | ||
|
@@ -55,7 +55,7 @@ | |
[ | ||
"DE", | ||
"2017-12-31 01:00:00", | ||
-2.9869346618652344 | ||
-2.9869308471679688 | ||
], | ||
[ | ||
"DE", | ||
|
@@ -85,12 +85,12 @@ | |
[ | ||
"DE", | ||
"2017-12-31 07:00:00", | ||
-0.4271507263183594 | ||
-0.427154541015625 | ||
], | ||
[ | ||
"FR", | ||
"2016-12-31 00:00:00", | ||
62.130218505859375 | ||
62.130226135253906 | ||
], | ||
[ | ||
"FR", | ||
|
@@ -110,12 +110,12 @@ | |
[ | ||
"FR", | ||
"2016-12-31 04:00:00", | ||
46.49836730957031 | ||
46.49835968017578 | ||
], | ||
[ | ||
"FR", | ||
"2016-12-31 05:00:00", | ||
49.270904541015625 | ||
49.270896911621094 | ||
], | ||
[ | ||
"FR", | ||
|
@@ -160,7 +160,7 @@ | |
[ | ||
"NP", | ||
"2018-12-24 06:00:00", | ||
52.23451614379883 | ||
52.234519958496094 | ||
], | ||
[ | ||
"NP", | ||
|
@@ -180,12 +180,12 @@ | |
[ | ||
"PJM", | ||
"2018-12-24 02:00:00", | ||
20.667823791503906 | ||
20.667821884155273 | ||
], | ||
[ | ||
"PJM", | ||
"2018-12-24 03:00:00", | ||
20.97324562072754 | ||
20.973247528076172 | ||
], | ||
[ | ||
"PJM", | ||
|
@@ -216,6 +216,6 @@ | |
"message": "success", | ||
"details": "request successful", | ||
"code": "B10", | ||
"requestID": "6K8VVPHJMH", | ||
"requestID": "X2KW6WKKEP", | ||
"support": "If you have questions or need support, please email [email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
with_mock_dir("mocks", { | ||
test_that("test historic", { | ||
test_data <- nixtlar::electricity | ||
response <- timegpt_historic(test_data, id_col="unique_id") | ||
expect_s3_class(response, "data.frame") # output should be a data frame given that nixtlar::electricity is a data frame | ||
expect_true(all(c("unique_id", "ds", "TimeGPT") %in% names(response))) # should have columns ds and TimeGPT | ||
expect_type(response$TimeGPT, "double") #TimeGPT should be numeric | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters