fmt: fixes some linting issues
All checks were successful
gitea-physics/deepdog/pipeline/pr-master This commit looks good
All checks were successful
gitea-physics/deepdog/pipeline/pr-master This commit looks good
This commit is contained in:
@@ -192,6 +192,9 @@ class BayesRunWithSubspaceSimulation:
|
|||||||
likelihoods: List[float] = []
|
likelihoods: List[float] = []
|
||||||
|
|
||||||
for (name, result) in zip(self.model_names, results):
|
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)
|
likelihoods.append(result.over_target_likelihood)
|
||||||
row[f"{name}_likelihood"] = result.over_target_likelihood
|
row[f"{name}_likelihood"] = result.over_target_likelihood
|
||||||
|
|
||||||
|
@@ -114,7 +114,7 @@ class SubsetSimulation:
|
|||||||
mcmc_rng = numpy.random.default_rng(self.mcmc_seed)
|
mcmc_rng = numpy.random.default_rng(self.mcmc_seed)
|
||||||
|
|
||||||
for i in range(self.m_max):
|
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]):
|
for cost_index, cost_chain in enumerate(all_chains[: -self.n_c]):
|
||||||
probs_list.append(
|
probs_list.append(
|
||||||
|
Reference in New Issue
Block a user