cmdstan 0.2.0 → 0.2.2

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: 5f1f35290531f540948f74615fbf92d7e51d86d2f382427ebe41945a570ac94e
4
+ data.tar.gz: 14d5ddb746c8e45a2914b4cc354af79b7efd64bf71066f6dda1bb65d0b55165b
5
5
  SHA512:
6
- metadata.gz: 7e093e742ddd620087178b2db7ae8c854f40392e0f8b89f6db84bc9492d897c800d39ed0951523809808b91df08c0b2342503bcfbf2495a750ceb0651b5ea199
7
- data.tar.gz: 45b9a5b9bc4fdad879d0a72ef8c0aa1d3fbe06a9ea3aeadd5ca1f18b7fae6add8190e539d55412bc46861621e9cba1bcc0e7110aa472237e2cb5383ecd781f68
6
+ metadata.gz: 36be447dfbb0fb609730df687581daa35eb793ad1ec66d1ec8a87ef3b2dbddcb80925f78911eeaa3d65c6f2327de4cfe77da40f628f9d7ba7bed220f69a115a2
7
+ data.tar.gz: 55b1ec0beff220127d4d9474ccdc59b04ef9d9a37522dbbc09a5f19a0bc052e4995722b7bef023dc513a78410b5bf4ca412ba39cc18de529bea832c51708772d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 0.2.2 (2023-04-20)
2
+
3
+ - Updated CmdStan to 2.32.0
4
+
5
+ ## 0.2.1 (2022-07-06)
6
+
7
+ - Updated CmdStan to 2.30.0
8
+ - Fixed error when `chains` not specified
9
+
1
10
  ## 0.2.0 (2022-04-23)
2
11
 
3
12
  - CmdStan now installs when the first model is compiled rather than on gem installation
data/LICENSE.txt CHANGED
@@ -1,7 +1,7 @@
1
1
  BSD 3-Clause License
2
2
 
3
3
  Copyright (c) 2019, Stan Developers and their Assignees
4
- Copyright (c) 2020-2022, Andrew Kane
4
+ Copyright (c) 2020-2023, Andrew Kane
5
5
  All rights reserved.
6
6
 
7
7
  Redistribution and use in source and binary forms, with or without
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.32.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 = "e387890fd02c167c38db34c34a09ff2193c354b203d11ca1d34da0ec4b2b0606"
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 = "29fee108d2ae3dca5be7c0a65a70517922e4be671e129d177c84f77a11263d4a"
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.2"
3
3
  end
data/lib/cmdstan.rb CHANGED
@@ -8,12 +8,12 @@ require "open3"
8
8
  require "tempfile"
9
9
 
10
10
  # modules
11
- require "cmdstan/install"
12
- require "cmdstan/utils"
13
- require "cmdstan/mcmc"
14
- require "cmdstan/mle"
15
- require "cmdstan/model"
16
- require "cmdstan/version"
11
+ require_relative "cmdstan/install"
12
+ require_relative "cmdstan/utils"
13
+ require_relative "cmdstan/mcmc"
14
+ require_relative "cmdstan/mle"
15
+ require_relative "cmdstan/model"
16
+ require_relative "cmdstan/version"
17
17
 
18
18
  module CmdStan
19
19
  class Error < StandardError; 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.2
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: 2023-04-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: andrew@ankane.org
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  requirements: []
48
- rubygems_version: 3.3.7
48
+ rubygems_version: 3.4.10
49
49
  signing_key:
50
50
  specification_version: 4
51
51
  summary: Bayesian inference for Ruby, powered by CmdStan