parsnip.ParsnipModel.decode
- ParsnipModel.decode(encoding, ref_times, color, times, redshifts, band_indices, amplitude=None)
Predict the light curves for a given set of latent variables
- Parameters:
encoding (
FloatTensor) – Coordinates in the ParSNIP intrinsic latent space for each light curveref_times (
FloatTensor) – Reference time for each light curvecolor (
FloatTensor) – Color of each light curvetimes (
FloatTensor) – Times to predict each light curve atredshifts (
FloatTensor) – Redshift of each light curveband_indices (
LongTensor) – Band indices for each observationamplitude (
FloatTensor, optional) – Amplitude to scale each light curve by, by default no scaling will be applied
- Returns:
FloatTensor– Model spectraFloatTensor– Model photometry