autolens.SettingsInversion#

class SettingsInversion[source]#

Bases: object

The settings of an Inversion, customizing how a linear set of equations are solved for.

An Inversion is used to reconstruct a dataset, for example the luminous emission of a galaxy.

Parameters
  • use_w_tilde (bool) – Whether to use the w-tilde formalism to perform the inversion, which speeds up the construction of the simultaneous linear equations (by bypassing the construction of a mapping_matrix) for many dataset use cases.

  • use_positive_only_solver (bool) – Whether to use a positive-only linear system solver, which requires that every reconstucted value is positive but is computationally much slower than the default solver (which allows for positive and negative values).

  • positive_only_maxiter (int) – The maximum number of iterations used by the positive only linear algebra solver.

  • no_regularization_add_to_curvature_diag (bool) – When True, if a linear object in the inversion has no regularization, values of 1.0e-8 are added to the diagonal of its curvature_matrix to stablelize the linear algebra solver.

  • check_solution (Optional[bool]) – If True, the reconstruction of the inversion is checked to ensure that no two source pixels have numerically identical values, which indicates a spurious solution where the linear algebra solver reconstructs every value as an identical value (for reasons that are currently not understood).

  • use_w_tilde_numpy (bool) – If True, the curvature_matrix is computed via numpy matrix multiplication (as opposed to numba functions which exploit sparsity to do the calculation normally in a more efficient way).

  • use_source_loop (bool) – Shhhh its a secret.

  • use_linear_operators (bool) – For an interferometer inversion, whether to use the linear operator solution to solve the linear system or not (this input does nothing for imaging data).

  • tolerance (float) – For an interferometer inversion using the linear operators method, sets the tolerance of the solver (this input does nothing for imaging data and other interferometer methods).

  • maxiter (int) – For an interferometer inversion using the linear operators method, sets the maximum number of iterations of the solver (this input does nothing for imaging data and other interferometer methods).

Methods

Attributes

check_solution