Resolve "(Learner1D) add possibility to use the direct neighbors in the loss"
Compare changes
Files
6+ 79
− 18
@@ -15,6 +15,65 @@ from ..notebook_integration import ensure_holoviews
@@ -36,6 +95,7 @@ def uniform_loss(interval, scale, data, neighbors):
@@ -70,13 +130,10 @@ def _loss_of_multi_interval(xs, ys):
@@ -89,6 +146,7 @@ def triangle_loss(interval, scale, data, neighbors):
@@ -123,12 +181,12 @@ def _get_neighbors_from_list(xs):
@@ -145,10 +203,12 @@ class Learner1D(BaseLearner):
@@ -174,14 +234,15 @@ class Learner1D(BaseLearner):