Skip to content

Commit a9bb7f6

Browse files
authored
fix bug in curvature_loss
1 parent 386da45 commit a9bb7f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adaptive/learner/learner1D.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def curvature_loss_function(area_factor=1, euclid_factor=0.02, horizontal_factor
129129
@uses_nth_neighbors(1)
130130
def curvature_loss(xs, ys):
131131
xs_middle = xs[1:3]
132-
ys_middle = xs[1:3]
132+
ys_middle = ys[1:3]
133133

134134
triangle_loss_ = triangle_loss(xs, ys)
135135
default_loss_ = default_loss(xs_middle, ys_middle)

0 commit comments

Comments
 (0)