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 (Optional[bool]) – Whether to use a positive-only linear system solver, which requires that every reconstructed value is positive but is computationally much slower than the default solver (which allows for positive and negative values).

  • relocate_pix_border (Optional[bool]) – If True, all coordinates of all pixelization source mesh grids have pixels outside their border relocated to their edge.

  • no_regularization_add_to_curvature_diag_value (Optional[float]) – If a linear func object does not have a corresponding regularization, this value is added to its diagonal entries of the curvature regularization matrix to ensure the matrix is positive-definite.

  • 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 dataset data).

  • image_mesh_min_mesh_pixels_per_pixel – If not None, the image-mesh must place this many mesh pixels per image pixels in the N highest weighted regions of the adapt data, or an InversionException is raised. This can be used to force the image-mesh to cluster large numbers of source pixels to the adapt-datas brightest regions.

  • image_mesh_min_mesh_number (int) – The value N given above in the docstring for image_mesh_min_mesh_pixels_per_pixel, indicating how many image pixels are checked for having a threshold number of mesh pixels.

  • image_mesh_adapt_background_percent_threshold (Optional[float]) – If not None, the image-mesh must place this percentage of mesh-pixels in the background regions of the adapt_data, where the background is the image_mesh_adapt_background_percent_check masked data pixels with the lowest values.

  • image_mesh_adapt_background_percent_check (float) – The percentage of masked data pixels which are checked for the background criteria.

  • tolerance (float) – For an interferometer inversion using the linear operators method, sets the tolerance of the solver (this input does nothing for dataset 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 dataset data and other interferometer methods).

Methods

Attributes

no_regularization_add_to_curvature_diag_value

positive_only_uses_p_initial

relocate_pix_border

use_positive_only_solver