Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
BayesValidRox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
inversemodeling
BayesValidRox
Commits
42f15e4d
Commit
42f15e4d
authored
10 months ago
by
kohlhaasrebecca
Browse files
Options
Downloads
Patches
Plain Diff
Add early stop in inference for model comparison
parent
40651471
No related branches found
No related tags found
1 merge request
!29
Preparation for release 1.1.0: fixes and test for pages
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/bayesvalidrox/bayes_inference/bayes_inference.py
+3
-0
3 additions, 0 deletions
src/bayesvalidrox/bayes_inference/bayes_inference.py
src/bayesvalidrox/bayes_inference/bayes_model_comparison.py
+1
-0
1 addition, 0 deletions
src/bayesvalidrox/bayes_inference/bayes_model_comparison.py
with
4 additions
and
0 deletions
src/bayesvalidrox/bayes_inference/bayes_inference.py
+
3
−
0
View file @
42f15e4d
...
@@ -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
'
:
...
...
This diff is collapsed.
Click to expand it.
src/bayesvalidrox/bayes_inference/bayes_model_comparison.py
+
1
−
0
View file @
42f15e4d
...
@@ -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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment