MultiTargetFit¶
- class nyx.infer.multitarget.MultiTargetFit[source]¶
Bases:
ModuleJoint fit over several targets with shared instruments.
Instruments of the same name across scenes are linked: their non-per-obs Parameters live once in
canonical_instrumentsand are injected into every scene at render time, so their gradients sum over targets.- Parameters:
Attributes Summary
Names of the shared instruments.
Names of the fitted targets.
Methods Summary
Physical value of every fitted Parameter.
Table of every fitted Parameter.
render()Render all targets.
set(path, value)Set one parameter by name; see
set_params().set_params(params)Set parameters by the names
parameters_table()prints.Attributes Documentation
- canonical_fields = <dataclasses._MISSING_TYPE object>¶
- canonical_instruments = <dataclasses._MISSING_TYPE object>¶
- target_scenes = <dataclasses._MISSING_TYPE object>¶
Methods Documentation
- dump_params()[source]¶
Physical value of every fitted Parameter.
- Return type:
dict of str to numpy.ndarray
- render()[source]¶
Render all targets.
- Returns:
Keyed by target name, then instrument name.
- Return type:
dict of str to dict of str to jax.Array
- set(path, value)[source]¶
Set one parameter by name; see
set_params().- Parameters:
path (str)
value (array-like)
- Return type:
- set_params(params)[source]¶
Set parameters by the names
parameters_table()prints.
- static __new__(cls, *args, **kwargs)¶