Skip to content
Snippets Groups Projects

Resolve "(Learner1D) add possibility to use the direct neighbors in the loss"

Merged Jorn Hoofwijk requested to merge 119-add-second-order-loss-to-adaptive into master
Compare and Show latest version
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -59,7 +59,7 @@ def default_loss(interval, scale, function_values):
def _loss_of_multi_interval(xs, ys):
pts = list(zip(xs, ys))
N = len(pts)-2
N = len(pts) - 2
return sum(volume(pts[i:i+3]) for i in range(N)) / N
Loading