Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Neel Shah
NIFTy
Commits
0a401ead
Commit
0a401ead
authored
Jun 10, 2021
by
Philipp Arras
Browse files
Likelihood -> loglikelihood
parent
e500429f
Changes
1
Hide whitespace changes
Inline
Side-by-side
demos/parametric_variational_inference.py
View file @
0a401ead
...
...
@@ -57,12 +57,12 @@ if __name__ == "__main__":
d_space
=
R
.
target
[
0
]
lamb
=
R
(
sky
)
# Generate simulated signal and data and build likelihood
.
# Generate simulated signal and data and build
log-
likelihood
mock_position
=
ift
.
from_random
(
sky
.
domain
,
"normal"
)
data
=
ift
.
random
.
current_rng
().
poisson
(
lamb
(
mock_position
).
val
)
data
=
ift
.
makeField
(
d_space
,
data
)
likelihood
=
ift
.
PoissonianEnergy
(
data
)
@
lamb
H
=
ift
.
StandardHamiltonian
(
likelihood
)
log
likelihood
=
ift
.
PoissonianEnergy
(
data
)
@
lamb
H
=
ift
.
StandardHamiltonian
(
log
likelihood
)
# Settings for minimization
IC
=
ift
.
StochasticAbsDeltaEnergyController
(
5
,
iteration_limit
=
200
,
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment