mcmc #32

Merged
deepak merged 4 commits from mcmc into master 2023-07-24 07:02:22 +00:00
2 changed files with 4 additions and 1 deletions
Showing only changes of commit d6e6876a79 - Show all commits

View File

@@ -192,6 +192,9 @@ class BayesRunWithSubspaceSimulation:
likelihoods: List[float] = []
for (name, result) in zip(self.model_names, results):
if result.over_target_likelihood is None:
_logger.error("got a none result, bye")
return
likelihoods.append(result.over_target_likelihood)
row[f"{name}_likelihood"] = result.over_target_likelihood

View File

@@ -114,7 +114,7 @@ class SubsetSimulation:
mcmc_rng = numpy.random.default_rng(self.mcmc_seed)
for i in range(self.m_max):
next_seeds = all_chains[-self.n_c :]
next_seeds = all_chains[-self.n_c:]
for cost_index, cost_chain in enumerate(all_chains[: -self.n_c]):
probs_list.append(