data = {
0.19130434782608696: 2428.6145000000006,
0.1826086956521739: 2410.7965000000004,
0.2: 2449.1395,
}
learner = adaptive.Learner1D(
None,
bounds=(0, 0.2),
loss_per_interval=adaptive.learner.learner1D.triangle_loss,
)
for x, y in data.items():
learner.tell(x, y)
learner.loss()
prints 0.0015347736506519973.
A typical runner goal runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 0.01) would finish after two points.
I think we should report an infinite loss until the boundary points are included.
@akhmerov, @jbweston, what do you think?
prints
0.0015347736506519973.A typical runner goal
runner = adaptive.Runner(learner, goal=lambda l: l.loss() < 0.01)would finish after two points.I think we should report an infinite loss until the boundary points are included.
@akhmerov, @jbweston, what do you think?