Skip to content
Snippets Groups Projects
Commit 42f15e4d authored by kohlhaasrebecca's avatar kohlhaasrebecca
Browse files

Add early stop in inference for model comparison

parent 40651471
No related branches found
No related tags found
1 merge request!29Preparation for release 1.1.0: fixes and test for pages
...@@ -446,6 +446,9 @@ class BayesInference: ...@@ -446,6 +446,9 @@ class BayesInference:
# BME = BME + BMECorrFactor # BME = BME + BMECorrFactor
if self.emulator: if self.emulator:
self.log_BME += self.log_BME_corr_factor self.log_BME += self.log_BME_corr_factor
if self.bmc:
return self
# ---------------- Parameter Bayesian inference ---------------- # ---------------- Parameter Bayesian inference ----------------
if self.inference_method.lower() == 'mcmc': if self.inference_method.lower() == 'mcmc':
......
...@@ -169,6 +169,7 @@ class BayesModelComparison: ...@@ -169,6 +169,7 @@ class BayesModelComparison:
# Pass justifiability data as perturbed data # Pass justifiability data as perturbed data
BayesOpts.perturbed_data = justData BayesOpts.perturbed_data = justData
BayesOpts.just_analysis = justifiability BayesOpts.just_analysis = justifiability
BayesOpts.bmc = True
bayes_dict[model] = BayesOpts.create_inference() bayes_dict[model] = BayesOpts.create_inference()
print("-"*20) print("-"*20)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment