Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Guang
x-cigale
Commits
55333ac0
Commit
55333ac0
authored
Apr 14, 2017
by
Médéric Boquien
Browse files
Exclude invalid models to compute the total weight of a block of models.
parent
acf96523
Changes
1
Hide whitespace changes
Inline
Side-by-side
pcigale/analysis_modules/pdf_analysis/workers.py
View file @
55333ac0
...
...
@@ -177,7 +177,7 @@ def analysis(idx, obs):
# We use the exponential probability associated with the χ² as
# likelihood function.
likelihood
=
np
.
exp
(
-
chi2
/
2.
)
gbl_results
.
bayes
.
weights
[
idx
]
=
np
.
sum
(
likelihood
)
gbl_results
.
bayes
.
weights
[
idx
]
=
np
.
nan
sum
(
likelihood
)
# We compute the weighted average and standard deviation using the
# likelihood as weight.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment