Skip to content

Commit d62eca6

Browse files
committed
feat: Report detailed progress
1 parent 5ef548b commit d62eca6

File tree

8 files changed

+521
-142
lines changed

8 files changed

+521
-142
lines changed

Cargo.lock

Lines changed: 47 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ itertools = "0.12.0"
3434
bridgestan = "2.1.2"
3535
rand_distr = "0.4.3"
3636
smallvec = "1.11.0"
37+
upon = { version = "0.8.1", default-features = false, features = [] }
38+
time-humanize = { version = "0.1.3", default-features = false }
3739

3840
[dependencies.pyo3]
3941
version = "0.21.0"

python/nutpie/compile_pymc.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,11 @@ def with_data(self, **updates):
8787
user_data=user_data,
8888
)
8989

90-
def _make_sampler(self, settings, init_mean, cores, callback=None):
90+
def _make_sampler(self, settings, init_mean, cores, template, rate, callback=None):
9191
model = self._make_model(init_mean)
92-
return _lib.PySampler.from_pymc(settings, cores, model, callback)
92+
return _lib.PySampler.from_pymc(
93+
settings, cores, model, template, rate, callback
94+
)
9395

9496
def _make_model(self, init_mean):
9597
expand_fn = _lib.ExpandFunc(

python/nutpie/compile_stan.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,9 +80,11 @@ def _make_model(self, init_mean):
8080
return self.with_data().model
8181
return self.model
8282

83-
def _make_sampler(self, settings, init_mean, cores, callback=None):
83+
def _make_sampler(self, settings, init_mean, cores, template, rate, callback=None):
8484
model = self._make_model(init_mean)
85-
return _lib.PySampler.from_stan(settings, cores, model, callback)
85+
return _lib.PySampler.from_stan(
86+
settings, cores, model, template, rate, callback
87+
)
8688

8789
@property
8890
def n_dim(self):

0 commit comments

Comments
 (0)