parsnip.ParsnipModel.predict_sncosmo

ParsnipModel.predict_sncosmo(light_curve, sample=False)

Package the predictions for a light curve as an sncosmo model

This method performs variational inference on a light curve to predict its latent representation. It then initializes an SNCosmo model with that representation.

Parameters:
  • light_curve (Table) – Light curve

  • sample (bool, optional) – If True, sample from the latent variable posteriors. Otherwise, use the MAP. By default False.

Returns:

SNCosmo model initialized with the light curve’s predicted latent representation

Return type:

ParsnipSncosmoModel