Resolve "(Learner1D) add possibility to use the direct neighbors in the loss"
1 unresolved thread
Compare changes
Files
8+ 99
− 35
@@ -15,7 +15,66 @@ from ..notebook_integration import ensure_holoviews
@@ -36,7 +95,8 @@ def uniform_loss(interval, scale, function_values, neighbors):
@@ -44,7 +104,7 @@ def default_loss(interval, scale, function_values, neighbors):
@@ -70,27 +130,26 @@ def _loss_of_multi_interval(xs, ys):
@@ -121,11 +180,13 @@ def _get_neighbors_from_list(xs):
@@ -142,6 +203,12 @@ class Learner1D(BaseLearner):
@@ -152,29 +219,30 @@ class Learner1D(BaseLearner):
@@ -239,9 +307,8 @@ class Learner1D(BaseLearner):
@@ -277,8 +344,7 @@ class Learner1D(BaseLearner):
@@ -425,10 +491,8 @@ class Learner1D(BaseLearner):