prophet-rb 0.4.2 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/LICENSE.txt +1 -1
- data/README.md +4 -4
- data/data-raw/LICENSE-holidays.txt +1 -1
- data/data-raw/README.md +1 -1
- data/data-raw/generated_holidays.csv +56365 -32386
- data/lib/prophet/forecaster.rb +21 -13
- data/lib/prophet/holidays.rb +1 -3
- data/lib/prophet/stan_backend.rb +8 -6
- data/lib/prophet/version.rb +1 -1
- data/lib/prophet-rb.rb +1 -1
- data/lib/prophet.rb +10 -10
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4fd9d15984092c132cd6f13fa633e76e989de29ddd38f3f467803f7f76036466
|
4
|
+
data.tar.gz: 79b66208c4473e18a2da9fe8676d806d1e993f8f2723739f6ba4592d94b2b2f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de7a1a66e44a5846eebbdfc3fe77f7b43032e30562c276fb4e4422086887f689699046c683e4bc55b5291ac2cc80c28a9b8cdd5a2bddb218162a9c5fde6ebd30
|
7
|
+
data.tar.gz: 5ab4054e4e4f77a6b3255ee1f9fcb70b5e3aa02d74912960f2c2817c2b4e730d9c896959cd2e8dcaa0dc66338cece5e0130d967a3cdcc2b7c913f9a8fffb524b
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 0.5.0 (2023-09-05)
|
2
|
+
|
3
|
+
- Added support for Polars
|
4
|
+
- Updated holidays
|
5
|
+
- Changed warning to error for unsupported country holidays
|
6
|
+
- Disabled logging by default
|
7
|
+
- Fixed error with `add_regressor` and holidays
|
8
|
+
- Dropped support for Ruby < 3
|
9
|
+
|
1
10
|
## 0.4.2 (2022-07-12)
|
2
11
|
|
3
12
|
- Fixed warning with `add_country_holidays` method
|
data/LICENSE.txt
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
MIT License
|
2
2
|
|
3
3
|
Copyright (c) Facebook, Inc. and its affiliates.
|
4
|
-
Copyright (c) 2020-
|
4
|
+
Copyright (c) 2020-2023 Andrew Kane
|
5
5
|
|
6
6
|
Permission is hereby granted, free of charge, to any person obtaining
|
7
7
|
a copy of this software and associated documentation files (the
|
data/README.md
CHANGED
@@ -227,7 +227,7 @@ m = Prophet.new(changepoints: ["2014-01-01"])
|
|
227
227
|
Create a data frame with `holiday` and `ds` columns. Include all occurrences in your past data and future occurrences you’d like to forecast.
|
228
228
|
|
229
229
|
```ruby
|
230
|
-
playoffs = Rover::DataFrame.new(
|
230
|
+
playoffs = Rover::DataFrame.new({
|
231
231
|
"holiday" => "playoff",
|
232
232
|
"ds" => [
|
233
233
|
"2008-01-13", "2009-01-03", "2010-01-16",
|
@@ -238,13 +238,13 @@ playoffs = Rover::DataFrame.new(
|
|
238
238
|
],
|
239
239
|
"lower_window" => 0,
|
240
240
|
"upper_window" => 1
|
241
|
-
)
|
242
|
-
superbowls = Rover::DataFrame.new(
|
241
|
+
})
|
242
|
+
superbowls = Rover::DataFrame.new({
|
243
243
|
"holiday" => "superbowl",
|
244
244
|
"ds" => ["2010-02-07", "2014-02-02", "2016-02-07"],
|
245
245
|
"lower_window" => 0,
|
246
246
|
"upper_window" => 1
|
247
|
-
)
|
247
|
+
})
|
248
248
|
holidays = playoffs.concat(superbowls)
|
249
249
|
|
250
250
|
m = Prophet.new(holidays: holidays)
|
data/data-raw/README.md
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
Holidays from 1995 through 2044 are generated from [this script](https://github.com/facebook/prophet/blob/main/python/scripts/generate_holidays_file.py).
|
2
2
|
|
3
|
-
The data is
|
3
|
+
The data is from the Python [holidays](https://pypi.org/project/holidays/) package.
|