Add penalties to hyperopt
Created by: scarlehoff
You can add functions that take the pdf_model
and the stopping_object
in hyper_optimization/penalties.py
and then use them to apply penalties to your model. I've added two examples, one is a check over the saturation and the other checks that the patience is not too big (if it stopped too early, then the model is worse).