prophet-rb 0.2.3 → 0.3.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 +13 -0
- data/README.md +14 -8
- data/lib/prophet/forecaster.rb +27 -7
- data/lib/prophet/stan_backend.rb +20 -1
- data/lib/prophet/version.rb +1 -1
- data/lib/prophet.rb +10 -0
- data/stan/unix/prophet.stan +27 -16
- data/stan/win/prophet.stan +15 -2
- data/vendor/prophet-linux/bin/prophet +0 -0
- data/vendor/prophet-linux/lib/libtbb.so +1 -0
- data/vendor/prophet-linux/lib/libtbb.so.2 +0 -0
- data/vendor/prophet-linux/lib/libtbbmalloc.so +1 -0
- data/vendor/prophet-linux/lib/libtbbmalloc.so.2 +0 -0
- data/vendor/prophet-linux/lib/libtbbmalloc_proxy.so +1 -0
- data/vendor/prophet-linux/lib/libtbbmalloc_proxy.so.2 +0 -0
- data/vendor/prophet-linux/licenses/boost-license.txt +23 -0
- data/vendor/prophet-linux/licenses/cli11-license.txt +25 -0
- data/vendor/prophet-linux/licenses/cmdstan-license.txt +27 -0
- data/vendor/prophet-linux/licenses/eigen-bsd-license.txt +26 -0
- data/vendor/prophet-linux/licenses/eigen-mpl2-license.txt +373 -0
- data/vendor/prophet-linux/licenses/prophet-license.txt +21 -0
- data/vendor/prophet-linux/licenses/rapidjson-license.txt +57 -0
- data/vendor/prophet-linux/licenses/stan-license.txt +14 -0
- data/vendor/prophet-linux/licenses/stan-math-license.txt +14 -0
- data/vendor/prophet-linux/licenses/sundials-license.txt +67 -0
- data/vendor/prophet-linux/licenses/tbb-license.txt +201 -0
- data/vendor/prophet-linux/licenses/tbb-third-party-programs.txt +230 -0
- data/vendor/prophet-linux-arm/bin/prophet +0 -0
- data/vendor/prophet-linux-arm/lib/libtbb.so +1 -0
- data/vendor/prophet-linux-arm/lib/libtbb.so.2 +0 -0
- data/vendor/prophet-linux-arm/lib/libtbbmalloc.so +1 -0
- data/vendor/prophet-linux-arm/lib/libtbbmalloc.so.2 +0 -0
- data/vendor/prophet-linux-arm/lib/libtbbmalloc_proxy.so +1 -0
- data/vendor/prophet-linux-arm/lib/libtbbmalloc_proxy.so.2 +0 -0
- data/vendor/prophet-linux-arm/licenses/boost-license.txt +23 -0
- data/vendor/prophet-linux-arm/licenses/cli11-license.txt +25 -0
- data/vendor/prophet-linux-arm/licenses/cmdstan-license.txt +27 -0
- data/vendor/prophet-linux-arm/licenses/eigen-bsd-license.txt +26 -0
- data/vendor/prophet-linux-arm/licenses/eigen-mpl2-license.txt +373 -0
- data/vendor/prophet-linux-arm/licenses/prophet-license.txt +21 -0
- data/vendor/prophet-linux-arm/licenses/rapidjson-license.txt +57 -0
- data/vendor/prophet-linux-arm/licenses/stan-license.txt +14 -0
- data/vendor/prophet-linux-arm/licenses/stan-math-license.txt +14 -0
- data/vendor/prophet-linux-arm/licenses/sundials-license.txt +67 -0
- data/vendor/prophet-linux-arm/licenses/tbb-license.txt +201 -0
- data/vendor/prophet-linux-arm/licenses/tbb-third-party-programs.txt +230 -0
- data/vendor/prophet-mac/bin/prophet +0 -0
- data/vendor/prophet-mac/lib/libtbb.dylib +0 -0
- data/vendor/prophet-mac/lib/libtbbmalloc.dylib +0 -0
- data/vendor/prophet-mac/lib/libtbbmalloc_proxy.dylib +0 -0
- data/vendor/prophet-mac/licenses/boost-license.txt +23 -0
- data/vendor/prophet-mac/licenses/cli11-license.txt +25 -0
- data/vendor/prophet-mac/licenses/cmdstan-license.txt +27 -0
- data/vendor/prophet-mac/licenses/eigen-bsd-license.txt +26 -0
- data/vendor/prophet-mac/licenses/eigen-mpl2-license.txt +373 -0
- data/vendor/prophet-mac/licenses/prophet-license.txt +21 -0
- data/vendor/prophet-mac/licenses/rapidjson-license.txt +57 -0
- data/vendor/prophet-mac/licenses/stan-license.txt +14 -0
- data/vendor/prophet-mac/licenses/stan-math-license.txt +14 -0
- data/vendor/prophet-mac/licenses/sundials-license.txt +67 -0
- data/vendor/prophet-mac/licenses/tbb-license.txt +201 -0
- data/vendor/prophet-mac/licenses/tbb-third-party-programs.txt +230 -0
- data/vendor/prophet-mac-arm/bin/prophet +0 -0
- data/vendor/prophet-mac-arm/lib/libtbb.dylib +0 -0
- data/vendor/prophet-mac-arm/lib/libtbbmalloc.dylib +0 -0
- data/vendor/prophet-mac-arm/lib/libtbbmalloc_proxy.dylib +0 -0
- data/vendor/prophet-mac-arm/licenses/boost-license.txt +23 -0
- data/vendor/prophet-mac-arm/licenses/cli11-license.txt +25 -0
- data/vendor/prophet-mac-arm/licenses/cmdstan-license.txt +27 -0
- data/vendor/prophet-mac-arm/licenses/eigen-bsd-license.txt +26 -0
- data/vendor/prophet-mac-arm/licenses/eigen-mpl2-license.txt +373 -0
- data/vendor/prophet-mac-arm/licenses/prophet-license.txt +21 -0
- data/vendor/prophet-mac-arm/licenses/rapidjson-license.txt +57 -0
- data/vendor/prophet-mac-arm/licenses/stan-license.txt +14 -0
- data/vendor/prophet-mac-arm/licenses/stan-math-license.txt +14 -0
- data/vendor/prophet-mac-arm/licenses/sundials-license.txt +67 -0
- data/vendor/prophet-mac-arm/licenses/tbb-license.txt +201 -0
- data/vendor/prophet-mac-arm/licenses/tbb-third-party-programs.txt +230 -0
- metadata +83 -114
- data/ext/prophet/Makefile +0 -5
- data/ext/prophet/extconf.rb +0 -18
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Kane
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cmdstan
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: '0.2'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: '0.2'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: numo-narray
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,117 +52,16 @@ dependencies:
|
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
|
-
|
56
|
-
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - ">="
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - ">="
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: rake
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
|
-
- !ruby/object:Gem::Dependency
|
84
|
-
name: minitest
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - ">="
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '5'
|
90
|
-
type: :development
|
91
|
-
prerelease: false
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - ">="
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '5'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: daru
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - ">="
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '0'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
111
|
-
- !ruby/object:Gem::Dependency
|
112
|
-
name: matplotlib
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - ">="
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '0'
|
118
|
-
type: :development
|
119
|
-
prerelease: false
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - ">="
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: activesupport
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - ">="
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '0'
|
132
|
-
type: :development
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - ">="
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: tzinfo-data
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
|
-
description:
|
154
|
-
email: andrew@chartkick.com
|
55
|
+
description:
|
56
|
+
email: andrew@ankane.org
|
155
57
|
executables: []
|
156
|
-
extensions:
|
157
|
-
- ext/prophet/extconf.rb
|
58
|
+
extensions: []
|
158
59
|
extra_rdoc_files: []
|
159
60
|
files:
|
160
61
|
- CHANGELOG.md
|
161
62
|
- LICENSE.txt
|
162
63
|
- README.md
|
163
64
|
- data-raw/generated_holidays.csv
|
164
|
-
- ext/prophet/Makefile
|
165
|
-
- ext/prophet/extconf.rb
|
166
65
|
- lib/prophet-rb.rb
|
167
66
|
- lib/prophet.rb
|
168
67
|
- lib/prophet/forecaster.rb
|
@@ -172,11 +71,81 @@ files:
|
|
172
71
|
- lib/prophet/version.rb
|
173
72
|
- stan/unix/prophet.stan
|
174
73
|
- stan/win/prophet.stan
|
175
|
-
|
74
|
+
- vendor/prophet-linux-arm/bin/prophet
|
75
|
+
- vendor/prophet-linux-arm/lib/libtbb.so
|
76
|
+
- vendor/prophet-linux-arm/lib/libtbb.so.2
|
77
|
+
- vendor/prophet-linux-arm/lib/libtbbmalloc.so
|
78
|
+
- vendor/prophet-linux-arm/lib/libtbbmalloc.so.2
|
79
|
+
- vendor/prophet-linux-arm/lib/libtbbmalloc_proxy.so
|
80
|
+
- vendor/prophet-linux-arm/lib/libtbbmalloc_proxy.so.2
|
81
|
+
- vendor/prophet-linux-arm/licenses/boost-license.txt
|
82
|
+
- vendor/prophet-linux-arm/licenses/cli11-license.txt
|
83
|
+
- vendor/prophet-linux-arm/licenses/cmdstan-license.txt
|
84
|
+
- vendor/prophet-linux-arm/licenses/eigen-bsd-license.txt
|
85
|
+
- vendor/prophet-linux-arm/licenses/eigen-mpl2-license.txt
|
86
|
+
- vendor/prophet-linux-arm/licenses/prophet-license.txt
|
87
|
+
- vendor/prophet-linux-arm/licenses/rapidjson-license.txt
|
88
|
+
- vendor/prophet-linux-arm/licenses/stan-license.txt
|
89
|
+
- vendor/prophet-linux-arm/licenses/stan-math-license.txt
|
90
|
+
- vendor/prophet-linux-arm/licenses/sundials-license.txt
|
91
|
+
- vendor/prophet-linux-arm/licenses/tbb-license.txt
|
92
|
+
- vendor/prophet-linux-arm/licenses/tbb-third-party-programs.txt
|
93
|
+
- vendor/prophet-linux/bin/prophet
|
94
|
+
- vendor/prophet-linux/lib/libtbb.so
|
95
|
+
- vendor/prophet-linux/lib/libtbb.so.2
|
96
|
+
- vendor/prophet-linux/lib/libtbbmalloc.so
|
97
|
+
- vendor/prophet-linux/lib/libtbbmalloc.so.2
|
98
|
+
- vendor/prophet-linux/lib/libtbbmalloc_proxy.so
|
99
|
+
- vendor/prophet-linux/lib/libtbbmalloc_proxy.so.2
|
100
|
+
- vendor/prophet-linux/licenses/boost-license.txt
|
101
|
+
- vendor/prophet-linux/licenses/cli11-license.txt
|
102
|
+
- vendor/prophet-linux/licenses/cmdstan-license.txt
|
103
|
+
- vendor/prophet-linux/licenses/eigen-bsd-license.txt
|
104
|
+
- vendor/prophet-linux/licenses/eigen-mpl2-license.txt
|
105
|
+
- vendor/prophet-linux/licenses/prophet-license.txt
|
106
|
+
- vendor/prophet-linux/licenses/rapidjson-license.txt
|
107
|
+
- vendor/prophet-linux/licenses/stan-license.txt
|
108
|
+
- vendor/prophet-linux/licenses/stan-math-license.txt
|
109
|
+
- vendor/prophet-linux/licenses/sundials-license.txt
|
110
|
+
- vendor/prophet-linux/licenses/tbb-license.txt
|
111
|
+
- vendor/prophet-linux/licenses/tbb-third-party-programs.txt
|
112
|
+
- vendor/prophet-mac-arm/bin/prophet
|
113
|
+
- vendor/prophet-mac-arm/lib/libtbb.dylib
|
114
|
+
- vendor/prophet-mac-arm/lib/libtbbmalloc.dylib
|
115
|
+
- vendor/prophet-mac-arm/lib/libtbbmalloc_proxy.dylib
|
116
|
+
- vendor/prophet-mac-arm/licenses/boost-license.txt
|
117
|
+
- vendor/prophet-mac-arm/licenses/cli11-license.txt
|
118
|
+
- vendor/prophet-mac-arm/licenses/cmdstan-license.txt
|
119
|
+
- vendor/prophet-mac-arm/licenses/eigen-bsd-license.txt
|
120
|
+
- vendor/prophet-mac-arm/licenses/eigen-mpl2-license.txt
|
121
|
+
- vendor/prophet-mac-arm/licenses/prophet-license.txt
|
122
|
+
- vendor/prophet-mac-arm/licenses/rapidjson-license.txt
|
123
|
+
- vendor/prophet-mac-arm/licenses/stan-license.txt
|
124
|
+
- vendor/prophet-mac-arm/licenses/stan-math-license.txt
|
125
|
+
- vendor/prophet-mac-arm/licenses/sundials-license.txt
|
126
|
+
- vendor/prophet-mac-arm/licenses/tbb-license.txt
|
127
|
+
- vendor/prophet-mac-arm/licenses/tbb-third-party-programs.txt
|
128
|
+
- vendor/prophet-mac/bin/prophet
|
129
|
+
- vendor/prophet-mac/lib/libtbb.dylib
|
130
|
+
- vendor/prophet-mac/lib/libtbbmalloc.dylib
|
131
|
+
- vendor/prophet-mac/lib/libtbbmalloc_proxy.dylib
|
132
|
+
- vendor/prophet-mac/licenses/boost-license.txt
|
133
|
+
- vendor/prophet-mac/licenses/cli11-license.txt
|
134
|
+
- vendor/prophet-mac/licenses/cmdstan-license.txt
|
135
|
+
- vendor/prophet-mac/licenses/eigen-bsd-license.txt
|
136
|
+
- vendor/prophet-mac/licenses/eigen-mpl2-license.txt
|
137
|
+
- vendor/prophet-mac/licenses/prophet-license.txt
|
138
|
+
- vendor/prophet-mac/licenses/rapidjson-license.txt
|
139
|
+
- vendor/prophet-mac/licenses/stan-license.txt
|
140
|
+
- vendor/prophet-mac/licenses/stan-math-license.txt
|
141
|
+
- vendor/prophet-mac/licenses/sundials-license.txt
|
142
|
+
- vendor/prophet-mac/licenses/tbb-license.txt
|
143
|
+
- vendor/prophet-mac/licenses/tbb-third-party-programs.txt
|
144
|
+
homepage: https://github.com/ankane/prophet-ruby
|
176
145
|
licenses:
|
177
146
|
- MIT
|
178
147
|
metadata: {}
|
179
|
-
post_install_message:
|
148
|
+
post_install_message:
|
180
149
|
rdoc_options: []
|
181
150
|
require_paths:
|
182
151
|
- lib
|
@@ -184,15 +153,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
153
|
requirements:
|
185
154
|
- - ">="
|
186
155
|
- !ruby/object:Gem::Version
|
187
|
-
version: '2.
|
156
|
+
version: '2.7'
|
188
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
158
|
requirements:
|
190
159
|
- - ">="
|
191
160
|
- !ruby/object:Gem::Version
|
192
161
|
version: '0'
|
193
162
|
requirements: []
|
194
|
-
rubygems_version: 3.
|
195
|
-
signing_key:
|
163
|
+
rubygems_version: 3.3.7
|
164
|
+
signing_key:
|
196
165
|
specification_version: 4
|
197
166
|
summary: Time series forecasting for Ruby
|
198
167
|
test_files: []
|
data/ext/prophet/Makefile
DELETED
data/ext/prophet/extconf.rb
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
require "cmdstan"
|
2
|
-
require "fileutils"
|
3
|
-
require "tmpdir"
|
4
|
-
|
5
|
-
platform = Gem.win_platform? ? "win" : "unix"
|
6
|
-
stan_file = File.expand_path("../../stan/#{platform}/prophet.stan", __dir__)
|
7
|
-
|
8
|
-
# copy to avoid temp file in repo
|
9
|
-
temp_file = "#{Dir.tmpdir}/prophet.stan"
|
10
|
-
FileUtils.cp(stan_file, temp_file)
|
11
|
-
|
12
|
-
# compile
|
13
|
-
sm = CmdStan::Model.new(stan_file: temp_file)
|
14
|
-
|
15
|
-
# save
|
16
|
-
target_dir = File.expand_path("../../stan_model", __dir__)
|
17
|
-
FileUtils.mkdir_p(target_dir)
|
18
|
-
FileUtils.cp(sm.exe_file, "#{target_dir}/prophet_model.bin")
|