autolens.potential_correction.DpsiSrcInvAnalysis#
- class DpsiSrcInvAnalysis[source]#
Bases:
AnalysisSamples the joint source+dpsi pixelization (source pixelization and dpsi mesh/regularization hyper-parameters) of a joint inversion, with the inversion’s Bayesian evidence as the likelihood.
- Parameters:
masked_imaging – The masked
al.Imagingdataset.lens_start (
Galaxy) – The lens galaxy of the smooth-model fit the corrections perturb.source_start (
SrcFactory) – The source factory evaluated for the source gradients.anchor_points (
Optional[ndarray]) – The [3, 2] (y, x) anchor positions of the dpsi rescaling scheme.adapt_image – The adapt image of the source pixelization’s image mesh.
src_image_mesh – An image mesh whose image-plane mesh grid is preloaded into the source inversion.
settings_inversion (
Optional[Settings]) – The inversion settings; defaults to the positive-only solver with the border relocator.preloads (
Optional[dict]) – Precomputed fit attributes shared across evaluations.
Methods
compute_latent_samplesCompute latent-variable samples for every posterior sample.
compute_latent_variablesOverride to compute latent variables from the instance.
fit_for_visualizationBuild the fit used by the visualizer.
make_resultReturns the Result of the non-linear search after it is completed.
modify_after_fitOverwrite this method to modify the attributes of the Analysis class before the non-linear search begins.
modify_before_fitOverwrite this method to modify the attributes of the Analysis class before the non-linear search begins.
modify_modelperform_quick_updateprint_vram_usePrint JAX VRAM use for a given batch size.
save_attributessave_resultssave_results_combinedshared_state_fromOptionally compute a per-evaluation object that is shared across the factors of a FactorGraphModel.
with_modelAssociate an explicit model with this analysis.
Attributes
LATENT_BATCH_MODELATENT_KEYSsupports_background_updateWhether this analysis supports background quick updates.
supports_jax_visualizationWhether the visualizer can work directly with JAX arrays.