Commit 8001f7b2 authored by Philipp Arras's avatar Philipp Arras
Browse files

makeInvertible -> make_invertible

parent a7e8f804
...@@ -64,7 +64,7 @@ if __name__ == '__main__': ...@@ -64,7 +64,7 @@ if __name__ == '__main__':
# Minimize the Hamiltonian # Minimize the Hamiltonian
H = ift.Hamiltonian(likelihood, ic_sampling) H = ift.Hamiltonian(likelihood, ic_sampling)
H = H.makeInvertible(ic_cg) H = H.make_invertible(ic_cg)
# minimizer = ift.SteepestDescent(ic_newton) # minimizer = ift.SteepestDescent(ic_newton)
H, convergence = minimizer(H) H, convergence = minimizer(H)
......
...@@ -80,7 +80,7 @@ if __name__ == '__main__': ...@@ -80,7 +80,7 @@ if __name__ == '__main__':
# Minimize the Hamiltonian # Minimize the Hamiltonian
H = ift.Hamiltonian(likelihood) H = ift.Hamiltonian(likelihood)
H = H.makeInvertible(ic_cg) H = H.make_invertible(ic_cg)
H, convergence = minimizer(H) H, convergence = minimizer(H)
# Plot results # Plot results
......
...@@ -77,7 +77,7 @@ if __name__ == '__main__': ...@@ -77,7 +77,7 @@ if __name__ == '__main__':
for _ in range(N_samples)] for _ in range(N_samples)]
KL = ift.SampledKullbachLeiblerDivergence(H, samples) KL = ift.SampledKullbachLeiblerDivergence(H, samples)
KL = KL.makeInvertible(ic_cg) KL = KL.make_invertible(ic_cg)
KL, convergence = minimizer(KL) KL, convergence = minimizer(KL)
position = KL.position position = KL.position
......
...@@ -130,7 +130,7 @@ class Energy(NiftyMetaBase()): ...@@ -130,7 +130,7 @@ class Energy(NiftyMetaBase()):
""" """
return None return None
def makeInvertible(self, controller, preconditioner=None): def make_invertible(self, controller, preconditioner=None):
from .iteration_controller import IterationController from .iteration_controller import IterationController
if not isinstance(controller, IterationController): if not isinstance(controller, IterationController):
raise TypeError raise TypeError
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment