Skip to content

Commit

Permalink
feat: Report detailed progress
Browse files Browse the repository at this point in the history
  • Loading branch information
aseyboldt committed Apr 16, 2024
1 parent 5ef548b commit d62eca6
Show file tree
Hide file tree
Showing 8 changed files with 521 additions and 142 deletions.
80 changes: 47 additions & 33 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ itertools = "0.12.0"
bridgestan = "2.1.2"
rand_distr = "0.4.3"
smallvec = "1.11.0"
upon = { version = "0.8.1", default-features = false, features = [] }
time-humanize = { version = "0.1.3", default-features = false }

[dependencies.pyo3]
version = "0.21.0"
Expand Down
6 changes: 4 additions & 2 deletions python/nutpie/compile_pymc.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,11 @@ def with_data(self, **updates):
user_data=user_data,
)

def _make_sampler(self, settings, init_mean, cores, callback=None):
def _make_sampler(self, settings, init_mean, cores, template, rate, callback=None):
model = self._make_model(init_mean)
return _lib.PySampler.from_pymc(settings, cores, model, callback)
return _lib.PySampler.from_pymc(
settings, cores, model, template, rate, callback
)

def _make_model(self, init_mean):
expand_fn = _lib.ExpandFunc(
Expand Down
6 changes: 4 additions & 2 deletions python/nutpie/compile_stan.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ def _make_model(self, init_mean):
return self.with_data().model
return self.model

def _make_sampler(self, settings, init_mean, cores, callback=None):
def _make_sampler(self, settings, init_mean, cores, template, rate, callback=None):
model = self._make_model(init_mean)
return _lib.PySampler.from_stan(settings, cores, model, callback)
return _lib.PySampler.from_stan(
settings, cores, model, template, rate, callback
)

@property
def n_dim(self):
Expand Down
Loading

0 comments on commit d62eca6

Please sign in to comment.