astrophot.fit.func package#

Submodules#

astrophot.fit.func.lm module#

astrophot.fit.func.lm.batch_lm_step(x, data, model, weight, mask, jacobian, L=1.0, Lup=9.0, Ldn=11.0, tolerance=0.0001, likelihood='gaussian', max_step_iter=3)[source]#
astrophot.fit.func.lm.damp_hessian(hess, L)[source]#
astrophot.fit.func.lm.gradient(J, W, D, M)[source]#
astrophot.fit.func.lm.gradient_poisson(J, D, M)[source]#
astrophot.fit.func.lm.hessian(J, W)[source]#
astrophot.fit.func.lm.hessian_poisson(J, D, M)[source]#
astrophot.fit.func.lm.lm_step(x, data, model, weight, jacobian, L=1.0, Lup=9.0, Ldn=11.0, tolerance=0.0001, likelihood='gaussian')[source]#
astrophot.fit.func.lm.nll(D, M, W)[source]#

Negative log-likelihood for Gaussian noise. D: data M: model prediction W: weights

astrophot.fit.func.lm.nll_poisson(D, M)[source]#

Negative log-likelihood for Poisson noise. D: data M: model prediction

astrophot.fit.func.lm.rho(nll0, nll1, h, hessD, grad)[source]#
astrophot.fit.func.lm.solve(hess, grad, L)[source]#

astrophot.fit.func.mala module#

astrophot.fit.func.mala.mala(initial_state, log_prob, log_prob_grad, num_samples, epsilon, mass_matrix, progress=True, desc='MALA')[source]#

astrophot.fit.func.slalom module#

astrophot.fit.func.slalom.slalom_step(f, g, x0, m, S, N=10, up=1.3, down=0.5)[source]#

Module contents#

astrophot.fit.func.batch_lm_step(x, data, model, weight, mask, jacobian, L=1.0, Lup=9.0, Ldn=11.0, tolerance=0.0001, likelihood='gaussian', max_step_iter=3)[source]#
astrophot.fit.func.gradient(J, W, D, M)[source]#
astrophot.fit.func.gradient_poisson(J, D, M)[source]#
astrophot.fit.func.hessian(J, W)[source]#
astrophot.fit.func.hessian_poisson(J, D, M)[source]#
astrophot.fit.func.lm_step(x, data, model, weight, jacobian, L=1.0, Lup=9.0, Ldn=11.0, tolerance=0.0001, likelihood='gaussian')[source]#
astrophot.fit.func.mala(initial_state, log_prob, log_prob_grad, num_samples, epsilon, mass_matrix, progress=True, desc='MALA')[source]#
astrophot.fit.func.slalom_step(f, g, x0, m, S, N=10, up=1.3, down=0.5)[source]#