Open
Description
Many people have asked me how to do this.
I've recommended them to use the following loss function:
@adaptive.learner.learner1D.uses_nth_neighbors(0)
def abs_min_log_loss(xs, ys):
from adaptive.learner.learner1D import default_loss
ys = [np.log(np.abs(y).min()) for y in ys]
return default_loss(xs, ys)
We should put this in the documentation somewhere.