prophet-rb 0.4.2 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -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 +55 -21
- 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: db6bcb7718fabc1b3eb85bfac7e772f4e792b190acb7147f533c105bb67ce7c2
|
4
|
+
data.tar.gz: 43446f1d8923d712e4c7856b3529f0c36b5c32c3dbfec59ca2124b901e8a8b0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f6c0802652ee69eeef122356743c7ea7b86d3e6252a78852dc8b5ab88e3bd1cb1aa88cb4193fe1de6581a2034b3827f5ccb4a8a0cb4f53af5cc7d5439bb8b3e
|
7
|
+
data.tar.gz: 77d16680eac6f21e60c2e46d4f87f55fa9b8a0778ade2d3d7b244e90ce3978063b6f845ddcaa63d8f38982dcd665ef3b6a1993b394cf280698e4ac1793350a23
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,18 @@
|
|
1
|
+
## 0.5.1 (2024-05-06)
|
2
|
+
|
3
|
+
- Added `scaling` option
|
4
|
+
- Fixed issue with yearly seasonality being enabled without enough data
|
5
|
+
- Fixed issue with internal columns in `predict` output (`col`, `col_lower`, and `col_upper`)
|
6
|
+
|
7
|
+
## 0.5.0 (2023-09-05)
|
8
|
+
|
9
|
+
- Added support for Polars
|
10
|
+
- Updated holidays
|
11
|
+
- Changed warning to error for unsupported country holidays
|
12
|
+
- Disabled logging by default
|
13
|
+
- Fixed error with `add_regressor` and holidays
|
14
|
+
- Dropped support for Ruby < 3
|
15
|
+
|
1
16
|
## 0.4.2 (2022-07-12)
|
2
17
|
|
3
18
|
- 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.
|