Open sundarjhu opened 1 year ago
We might also want warnings for lightcurves with < N points. Perhaps $5^d$ would be sensible there?
Do we already have theoretical or empirical constraints on what constitutes a "good" GP fit depending on the number of points? e.g., $N{\rm points} > N{\rm pars}$? Or do we need to run some tests to get an empirical bound to return such a warning?
I would be surprised if there isn't some literature on that already, but I'm not sure exactly how to find it. Something to look in to. In parallel, we could simply create a few benchmark cases and incrementally increase the number of points, assessing the value and uncertainty of the hyperparameters as it goes? Might also be useful educational material for the astronomy community?
I found a similar question on stack exchange with a link to this paper. Not sure if that's what you're looking for though.
I think both the exception and the potential warning could be added in the method suggested in #43.
Describe the bug The current implementation of the
Lightcurve
object allows the creation of a 1-element light curve, but subsequently throws an error when theset_model
method is called:To Reproduce Steps to reproduce the behaviour:
Expected behaviour An attempt to create the
Lightcurve
object should throw an exception in the case of a one-element light curve.