src.superphot_plus.model.data
Module Contents
Classes
Holds data from multiple objects' posterior objects. |
|
Holds train and validation datasets. |
|
Holds information about testing data. |
- class PosteriorSamplesGroup[source]
Holds data from multiple objects’ posterior objects.
- posterior_objects: List[superphot_plus.posterior_samples.PosteriorSamples][source]
- oversample(fits_per_majority_lc=1)[source]
Oversamples, drawing from posteriors of a certain fit. Assumes goal_per_class is the number of majority class if not set.
- Returns:
Tuple containing oversampled features and labels.
- Return type:
tuple of np.ndarray
- make_fully_redshift_independent()[source]
Experimental! We can convert our shape parameters to be FULLY z-independent by instead using: tau_rise/gamma, tau_rise/tau_fall, beta*tau_rise
(but its log scale for tau_rise, gamma, tau_fall so add/subtract instead)
We do everything relative to tau_rise because that’s the first shape param to be measured in real time!