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
ift
NIFTy
Commits
8001f7b2
Commit
8001f7b2
authored
Jul 10, 2018
by
Philipp Arras
Browse files
makeInvertible -> make_invertible
parent
a7e8f804
Changes
4
Show whitespace changes
Inline
Side-by-side
demos/bernoulli_demo.py
View file @
8001f7b2
...
...
@@ -64,7 +64,7 @@ if __name__ == '__main__':
# Minimize the Hamiltonian
H
=
ift
.
Hamiltonian
(
likelihood
,
ic_sampling
)
H
=
H
.
make
I
nvertible
(
ic_cg
)
H
=
H
.
make
_i
nvertible
(
ic_cg
)
# minimizer = ift.SteepestDescent(ic_newton)
H
,
convergence
=
minimizer
(
H
)
...
...
demos/getting_started_2.py
View file @
8001f7b2
...
...
@@ -80,7 +80,7 @@ if __name__ == '__main__':
# Minimize the Hamiltonian
H
=
ift
.
Hamiltonian
(
likelihood
)
H
=
H
.
make
I
nvertible
(
ic_cg
)
H
=
H
.
make
_i
nvertible
(
ic_cg
)
H
,
convergence
=
minimizer
(
H
)
# Plot results
...
...
demos/getting_started_3.py
View file @
8001f7b2
...
...
@@ -77,7 +77,7 @@ if __name__ == '__main__':
for
_
in
range
(
N_samples
)]
KL
=
ift
.
SampledKullbachLeiblerDivergence
(
H
,
samples
)
KL
=
KL
.
make
I
nvertible
(
ic_cg
)
KL
=
KL
.
make
_i
nvertible
(
ic_cg
)
KL
,
convergence
=
minimizer
(
KL
)
position
=
KL
.
position
...
...
nifty5/minimization/energy.py
View file @
8001f7b2
...
...
@@ -130,7 +130,7 @@ class Energy(NiftyMetaBase()):
"""
return
None
def
make
I
nvertible
(
self
,
controller
,
preconditioner
=
None
):
def
make
_i
nvertible
(
self
,
controller
,
preconditioner
=
None
):
from
.iteration_controller
import
IterationController
if
not
isinstance
(
controller
,
IterationController
):
raise
TypeError
...
...
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