cmdstan 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca789cf84801bb8236e317d7fa3d0f4946f1dde0af355975adf48fba6d4aae38
4
- data.tar.gz: fcf91454404ba92fa54e68102d86826fb51e390f8277d6552b9d8805c8f48ad7
3
+ metadata.gz: d2453efa50e8efc908919f7366531f5bde5d4c619c913360c2a13fe4b5cd131d
4
+ data.tar.gz: c0c185c461629fef5231c0378e655dc7f85dc89add5f20c990483a9951a1cb49
5
5
  SHA512:
6
- metadata.gz: 7e093e742ddd620087178b2db7ae8c854f40392e0f8b89f6db84bc9492d897c800d39ed0951523809808b91df08c0b2342503bcfbf2495a750ceb0651b5ea199
7
- data.tar.gz: 45b9a5b9bc4fdad879d0a72ef8c0aa1d3fbe06a9ea3aeadd5ca1f18b7fae6add8190e539d55412bc46861621e9cba1bcc0e7110aa472237e2cb5383ecd781f68
6
+ metadata.gz: d7741eeb4d5a61ba2f6bbd13039f2eac8ee44abe456d25b2785d02f6e974b98179d8e49f9e5ec255c86465b8a940121c6f7f152ea7278003f29542eb18847767
7
+ data.tar.gz: '052084d4bc7228885851cc2d8d9355272d97e98c40a8849938e3912411075c4410f16dcca20de3692460cdd5ae8d6d62ce96c1e18af13b358e96b175c0663f71'
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.2.1 (2022-07-06)
2
+
3
+ - Updated CmdStan to 2.30.0
4
+ - Fixed error when `chains` not specified
5
+
1
6
  ## 0.2.0 (2022-04-23)
2
7
 
3
8
  - CmdStan now installs when the first model is compiled rather than on gem installation
data/README.md CHANGED
@@ -55,6 +55,8 @@ Load a compiled model
55
55
  model = CmdStan::Model.new(exe_file: "bernoulli")
56
56
  ```
57
57
 
58
+ Check out [Strata](https://github.com/ankane/strata) for shipping models
59
+
58
60
  ## Maximum Likelihood Estimation
59
61
 
60
62
  ```ruby
@@ -1,7 +1,7 @@
1
1
  module CmdStan
2
2
  module Install
3
3
  def cmdstan_version
4
- "2.29.2"
4
+ "2.30.0"
5
5
  end
6
6
 
7
7
  def cmdstan_installed?
@@ -12,12 +12,12 @@ module CmdStan
12
12
  version = cmdstan_version
13
13
  dir = CmdStan.path
14
14
 
15
- # TODO figure out Mac ARM
15
+ # no stanc3 binary for Mac ARM
16
16
  if RbConfig::CONFIG["host_os"] !~ /darwin/i && RbConfig::CONFIG["host_cpu"] =~ /arm|aarch64/i
17
- checksum = "9b7eec78e217cab39d3d794e817a1ca08f36b1e5cb434c4cd8263bb2650ba125"
17
+ checksum = "8ab1eaa83af100336e31fed1bcb854f30e7f775feb1274552fc706ed177969ef"
18
18
  url = "https://github.com/stan-dev/cmdstan/releases/download/v#{version}/cmdstan-#{version}-linux-arm64.tar.gz"
19
19
  else
20
- checksum = "567b531fa73ffdf706caa17eb3344e1dfb41e86993caf8ba40875ff910335153"
20
+ checksum = "009c2ea0043aa4a91c03ac78932e64f3cff4faa3e73413a2e0269d5be2d8de6c"
21
21
  url = "https://github.com/stan-dev/cmdstan/releases/download/v#{version}/cmdstan-#{version}.tar.gz"
22
22
  end
23
23
 
data/lib/cmdstan/model.rb CHANGED
@@ -36,7 +36,7 @@ module CmdStan
36
36
  data_file.write(data.to_json)
37
37
  data_file.close
38
38
 
39
- chain ||= 4
39
+ chains ||= 4
40
40
 
41
41
  output_files = []
42
42
  chains.times do |chain|
@@ -1,3 +1,3 @@
1
1
  module CmdStan
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cmdstan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.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-23 00:00:00.000000000 Z
11
+ date: 2022-07-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org