prophet-rb 0.3.0 → 0.3.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 +4 -0
- data/lib/prophet/forecaster.rb +4 -0
- data/lib/prophet/stan_backend.rb +5 -5
- data/lib/prophet/version.rb +1 -1
- data/vendor/{prophet-linux-arm → aarch64-linux}/bin/prophet +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/lib/libtbb.so +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/lib/libtbb.so.2 +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/lib/libtbbmalloc.so +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/lib/libtbbmalloc.so.2 +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/lib/libtbbmalloc_proxy.so +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/lib/libtbbmalloc_proxy.so.2 +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/boost-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/cli11-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/cmdstan-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/eigen-bsd-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/eigen-mpl2-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/prophet-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/rapidjson-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/stan-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/stan-math-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/sundials-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/tbb-license.txt +0 -0
- data/vendor/{prophet-linux-arm → aarch64-linux}/licenses/tbb-third-party-programs.txt +0 -0
- data/vendor/{prophet-mac-arm → arm64-darwin}/bin/prophet +0 -0
- data/vendor/arm64-darwin/lib/libtbb.dylib +0 -0
- data/vendor/{prophet-mac-arm → arm64-darwin}/lib/libtbbmalloc.dylib +0 -0
- data/vendor/{prophet-mac-arm → arm64-darwin}/lib/libtbbmalloc_proxy.dylib +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/boost-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/cli11-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/cmdstan-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/eigen-bsd-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/eigen-mpl2-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/prophet-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/rapidjson-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/stan-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/stan-math-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/sundials-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/tbb-license.txt +0 -0
- data/vendor/{prophet-linux → arm64-darwin}/licenses/tbb-third-party-programs.txt +0 -0
- data/vendor/{prophet-mac → x86_64-darwin}/bin/prophet +0 -0
- data/vendor/x86_64-darwin/lib/libtbb.dylib +0 -0
- data/vendor/{prophet-mac → x86_64-darwin}/lib/libtbbmalloc.dylib +0 -0
- data/vendor/{prophet-mac → x86_64-darwin}/lib/libtbbmalloc_proxy.dylib +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/boost-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/cli11-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/cmdstan-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/eigen-bsd-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/eigen-mpl2-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/prophet-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/rapidjson-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/stan-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/stan-math-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/sundials-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/tbb-license.txt +0 -0
- data/vendor/{prophet-mac-arm → x86_64-darwin}/licenses/tbb-third-party-programs.txt +0 -0
- data/vendor/{prophet-linux → x86_64-linux}/bin/prophet +0 -0
- data/vendor/{prophet-linux → x86_64-linux}/lib/libtbb.so +0 -0
- data/vendor/x86_64-linux/lib/libtbb.so.2 +0 -0
- data/vendor/{prophet-linux → x86_64-linux}/lib/libtbbmalloc.so +0 -0
- data/vendor/x86_64-linux/lib/libtbbmalloc.so.2 +0 -0
- data/vendor/{prophet-linux → x86_64-linux}/lib/libtbbmalloc_proxy.so +0 -0
- data/vendor/{prophet-linux → x86_64-linux}/lib/libtbbmalloc_proxy.so.2 +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/boost-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/cli11-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/cmdstan-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/eigen-bsd-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/eigen-mpl2-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/prophet-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/rapidjson-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/stan-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/stan-math-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/sundials-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/tbb-license.txt +0 -0
- data/vendor/{prophet-mac → x86_64-linux}/licenses/tbb-third-party-programs.txt +0 -0
- metadata +72 -72
- data/vendor/prophet-linux/lib/libtbb.so.2 +0 -0
- data/vendor/prophet-linux/lib/libtbbmalloc.so.2 +0 -0
- data/vendor/prophet-mac/lib/libtbb.dylib +0 -0
- data/vendor/prophet-mac-arm/lib/libtbb.dylib +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0656a4f1c6761438bfd9e6eeaed0bc30547cd10e794cdf2d12d208309fd57fd5
|
4
|
+
data.tar.gz: 8e6e1304ae81f33ac648a93bb287f9f206be2d800a40cbc82fffe295a285546d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9954683d0197627894eb1727690bf6007f05e94e896783f70ca66c4dff748a00829e68478ab155a30dcfbc971c4646032b046e58d7cc01bf0e38be98b851c504
|
7
|
+
data.tar.gz: 145e6f2974f79ba8cfe0836d7d71f39924b7f4800f73a776d9c17e3f10b7aa3e889ef82a8b9c30795df51b5c13f0fd189ca83fe7d841215572d6cc857301ddc9
|
data/CHANGELOG.md
CHANGED
data/lib/prophet/forecaster.rb
CHANGED
@@ -616,6 +616,10 @@ module Prophet
|
|
616
616
|
end
|
617
617
|
raise ArgumentError, "Must be a data frame" unless df.is_a?(Rover::DataFrame)
|
618
618
|
|
619
|
+
unless df.include?("ds") && df.include?("y")
|
620
|
+
raise ArgumentError, "Data frame must have ds and y columns"
|
621
|
+
end
|
622
|
+
|
619
623
|
history = df[!df["y"].missing]
|
620
624
|
raise Error, "Data has less than 2 non-nil rows" if history.size < 2
|
621
625
|
|
data/lib/prophet/stan_backend.rb
CHANGED
@@ -6,7 +6,7 @@ module Prophet
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def load_model
|
9
|
-
model_file = File.expand_path("../../vendor
|
9
|
+
model_file = File.expand_path("../../vendor/#{platform}/bin/prophet", __dir__)
|
10
10
|
raise Error, "Platform not supported yet" unless File.exist?(model_file)
|
11
11
|
CmdStan::Model.new(exe_file: model_file)
|
12
12
|
end
|
@@ -139,15 +139,15 @@ module Prophet
|
|
139
139
|
"windows"
|
140
140
|
elsif RbConfig::CONFIG["host_os"] =~ /darwin/i
|
141
141
|
if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
|
142
|
-
"
|
142
|
+
"arm64-darwin"
|
143
143
|
else
|
144
|
-
"
|
144
|
+
"x86_64-darwin"
|
145
145
|
end
|
146
146
|
else
|
147
147
|
if RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
|
148
|
-
"linux
|
148
|
+
"aarch64-linux"
|
149
149
|
else
|
150
|
-
"linux"
|
150
|
+
"x86_64-linux"
|
151
151
|
end
|
152
152
|
end
|
153
153
|
end
|
data/lib/prophet/version.rb
CHANGED
Binary file
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
File without changes
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prophet-rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-04-
|
11
|
+
date: 2022-04-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cmdstan
|
@@ -71,76 +71,76 @@ files:
|
|
71
71
|
- lib/prophet/version.rb
|
72
72
|
- stan/unix/prophet.stan
|
73
73
|
- stan/win/prophet.stan
|
74
|
-
- vendor/
|
75
|
-
- vendor/
|
76
|
-
- vendor/
|
77
|
-
- vendor/
|
78
|
-
- vendor/
|
79
|
-
- vendor/
|
80
|
-
- vendor/
|
81
|
-
- vendor/
|
82
|
-
- vendor/
|
83
|
-
- vendor/
|
84
|
-
- vendor/
|
85
|
-
- vendor/
|
86
|
-
- vendor/
|
87
|
-
- vendor/
|
88
|
-
- vendor/
|
89
|
-
- vendor/
|
90
|
-
- vendor/
|
91
|
-
- vendor/
|
92
|
-
- vendor/
|
93
|
-
- vendor/
|
94
|
-
- vendor/
|
95
|
-
- vendor/
|
96
|
-
- vendor/
|
97
|
-
- vendor/
|
98
|
-
- vendor/
|
99
|
-
- vendor/
|
100
|
-
- vendor/
|
101
|
-
- vendor/
|
102
|
-
- vendor/
|
103
|
-
- vendor/
|
104
|
-
- vendor/
|
105
|
-
- vendor/
|
106
|
-
- vendor/
|
107
|
-
- vendor/
|
108
|
-
- vendor/
|
109
|
-
- vendor/
|
110
|
-
- vendor/
|
111
|
-
- vendor/
|
112
|
-
- vendor/
|
113
|
-
- vendor/
|
114
|
-
- vendor/
|
115
|
-
- vendor/
|
116
|
-
- vendor/
|
117
|
-
- vendor/
|
118
|
-
- vendor/
|
119
|
-
- vendor/
|
120
|
-
- vendor/
|
121
|
-
- vendor/
|
122
|
-
- vendor/
|
123
|
-
- vendor/
|
124
|
-
- vendor/
|
125
|
-
- vendor/
|
126
|
-
- vendor/
|
127
|
-
- vendor/
|
128
|
-
- vendor/
|
129
|
-
- vendor/
|
130
|
-
- vendor/
|
131
|
-
- vendor/
|
132
|
-
- vendor/
|
133
|
-
- vendor/
|
134
|
-
- vendor/
|
135
|
-
- vendor/
|
136
|
-
- vendor/
|
137
|
-
- vendor/
|
138
|
-
- vendor/
|
139
|
-
- vendor/
|
140
|
-
- vendor/
|
141
|
-
- vendor/
|
142
|
-
- vendor/
|
143
|
-
- vendor/
|
74
|
+
- vendor/aarch64-linux/bin/prophet
|
75
|
+
- vendor/aarch64-linux/lib/libtbb.so
|
76
|
+
- vendor/aarch64-linux/lib/libtbb.so.2
|
77
|
+
- vendor/aarch64-linux/lib/libtbbmalloc.so
|
78
|
+
- vendor/aarch64-linux/lib/libtbbmalloc.so.2
|
79
|
+
- vendor/aarch64-linux/lib/libtbbmalloc_proxy.so
|
80
|
+
- vendor/aarch64-linux/lib/libtbbmalloc_proxy.so.2
|
81
|
+
- vendor/aarch64-linux/licenses/boost-license.txt
|
82
|
+
- vendor/aarch64-linux/licenses/cli11-license.txt
|
83
|
+
- vendor/aarch64-linux/licenses/cmdstan-license.txt
|
84
|
+
- vendor/aarch64-linux/licenses/eigen-bsd-license.txt
|
85
|
+
- vendor/aarch64-linux/licenses/eigen-mpl2-license.txt
|
86
|
+
- vendor/aarch64-linux/licenses/prophet-license.txt
|
87
|
+
- vendor/aarch64-linux/licenses/rapidjson-license.txt
|
88
|
+
- vendor/aarch64-linux/licenses/stan-license.txt
|
89
|
+
- vendor/aarch64-linux/licenses/stan-math-license.txt
|
90
|
+
- vendor/aarch64-linux/licenses/sundials-license.txt
|
91
|
+
- vendor/aarch64-linux/licenses/tbb-license.txt
|
92
|
+
- vendor/aarch64-linux/licenses/tbb-third-party-programs.txt
|
93
|
+
- vendor/arm64-darwin/bin/prophet
|
94
|
+
- vendor/arm64-darwin/lib/libtbb.dylib
|
95
|
+
- vendor/arm64-darwin/lib/libtbbmalloc.dylib
|
96
|
+
- vendor/arm64-darwin/lib/libtbbmalloc_proxy.dylib
|
97
|
+
- vendor/arm64-darwin/licenses/boost-license.txt
|
98
|
+
- vendor/arm64-darwin/licenses/cli11-license.txt
|
99
|
+
- vendor/arm64-darwin/licenses/cmdstan-license.txt
|
100
|
+
- vendor/arm64-darwin/licenses/eigen-bsd-license.txt
|
101
|
+
- vendor/arm64-darwin/licenses/eigen-mpl2-license.txt
|
102
|
+
- vendor/arm64-darwin/licenses/prophet-license.txt
|
103
|
+
- vendor/arm64-darwin/licenses/rapidjson-license.txt
|
104
|
+
- vendor/arm64-darwin/licenses/stan-license.txt
|
105
|
+
- vendor/arm64-darwin/licenses/stan-math-license.txt
|
106
|
+
- vendor/arm64-darwin/licenses/sundials-license.txt
|
107
|
+
- vendor/arm64-darwin/licenses/tbb-license.txt
|
108
|
+
- vendor/arm64-darwin/licenses/tbb-third-party-programs.txt
|
109
|
+
- vendor/x86_64-darwin/bin/prophet
|
110
|
+
- vendor/x86_64-darwin/lib/libtbb.dylib
|
111
|
+
- vendor/x86_64-darwin/lib/libtbbmalloc.dylib
|
112
|
+
- vendor/x86_64-darwin/lib/libtbbmalloc_proxy.dylib
|
113
|
+
- vendor/x86_64-darwin/licenses/boost-license.txt
|
114
|
+
- vendor/x86_64-darwin/licenses/cli11-license.txt
|
115
|
+
- vendor/x86_64-darwin/licenses/cmdstan-license.txt
|
116
|
+
- vendor/x86_64-darwin/licenses/eigen-bsd-license.txt
|
117
|
+
- vendor/x86_64-darwin/licenses/eigen-mpl2-license.txt
|
118
|
+
- vendor/x86_64-darwin/licenses/prophet-license.txt
|
119
|
+
- vendor/x86_64-darwin/licenses/rapidjson-license.txt
|
120
|
+
- vendor/x86_64-darwin/licenses/stan-license.txt
|
121
|
+
- vendor/x86_64-darwin/licenses/stan-math-license.txt
|
122
|
+
- vendor/x86_64-darwin/licenses/sundials-license.txt
|
123
|
+
- vendor/x86_64-darwin/licenses/tbb-license.txt
|
124
|
+
- vendor/x86_64-darwin/licenses/tbb-third-party-programs.txt
|
125
|
+
- vendor/x86_64-linux/bin/prophet
|
126
|
+
- vendor/x86_64-linux/lib/libtbb.so
|
127
|
+
- vendor/x86_64-linux/lib/libtbb.so.2
|
128
|
+
- vendor/x86_64-linux/lib/libtbbmalloc.so
|
129
|
+
- vendor/x86_64-linux/lib/libtbbmalloc.so.2
|
130
|
+
- vendor/x86_64-linux/lib/libtbbmalloc_proxy.so
|
131
|
+
- vendor/x86_64-linux/lib/libtbbmalloc_proxy.so.2
|
132
|
+
- vendor/x86_64-linux/licenses/boost-license.txt
|
133
|
+
- vendor/x86_64-linux/licenses/cli11-license.txt
|
134
|
+
- vendor/x86_64-linux/licenses/cmdstan-license.txt
|
135
|
+
- vendor/x86_64-linux/licenses/eigen-bsd-license.txt
|
136
|
+
- vendor/x86_64-linux/licenses/eigen-mpl2-license.txt
|
137
|
+
- vendor/x86_64-linux/licenses/prophet-license.txt
|
138
|
+
- vendor/x86_64-linux/licenses/rapidjson-license.txt
|
139
|
+
- vendor/x86_64-linux/licenses/stan-license.txt
|
140
|
+
- vendor/x86_64-linux/licenses/stan-math-license.txt
|
141
|
+
- vendor/x86_64-linux/licenses/sundials-license.txt
|
142
|
+
- vendor/x86_64-linux/licenses/tbb-license.txt
|
143
|
+
- vendor/x86_64-linux/licenses/tbb-third-party-programs.txt
|
144
144
|
homepage: https://github.com/ankane/prophet-ruby
|
145
145
|
licenses:
|
146
146
|
- MIT
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|