Model Configurations¶
MultiProFit’s second layer of data structures is a series of lsst.pex.config.Config
classes provided in lsst.multiprofit.componentconfig
, lsst.multiprofit.observationconfig
, lsst.multiprofit.sourceconfig
, and finally lsst.multiprofit.modelconfig
(which relies on the former three modules).
Each class in these modules is serializable and can be used to construct an equivalent lsst.gauss2d
or lsst.gauss2d.fit
object. The classes are designed for model configuration and can be used to provide initial parameter values, transformations, etc. They are not used or updated at runtime.
Parameter and Component Configuration¶
Gauss2DFit components are configured by lsst.multiprofit.ComponentConfig
subclasses, while individual parameters are configured by
lsst.multiprofit.ParameterConfig
subclasses. These classes can be used to configure components for both PSF and source models.
In most cases, model fitting classes will provide ways to initialize most parameters before fitting, so the initial values of most parameters are not critical; however, they should still be reasonable defaults. For example, variable sizes and fluxes should not be set to zero.
Source Configuration¶
lsst.multiprofit.SourceConfig
similarly implements configuration for a single lsst.gauss2d.fit
source. Source configurations are composed of instances of the intermediate lsst.multiprofit.ComponentGroupConfig
class. This class has no equivalent in Gauss2DFit - it is an additional abstraction to allow for a limited subset of the model constraints allowed by components sharing model parameters. The most important use is allowing components to share the same centroid. Future improvements may allow for size, shape, or flux/color constraints, although the latter may instead be implemented as priors.
Observation and Model Configuration¶
lsst.multiprofit.ObservationConfig
provides configuration options for observations, including the band and pixel size. The class maps directly onto its Gauss2DFit equivalent, as does lsst.multiprofit.ModelConfig
.
Examples¶
MultiProFit config classes are used extensively in the provided catalog fitters; these serve as example usage.