Skip to content

Commit

Permalink
Rename and test
Browse files Browse the repository at this point in the history
  • Loading branch information
basnijholt committed Jul 7, 2023
1 parent 5e53e30 commit 43a0855
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion adaptive/learner/learner2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ def default_loss(ip: LinearNDInterpolator) -> np.ndarray:
return losses


def thresholded_loss_factory(
def thresholded_loss_function(
lower_threshold: float | None = None,
upper_threshold: float | None = None,
priority_factor: float = 0.1,
Expand Down
1 change: 1 addition & 0 deletions adaptive/tests/test_learners.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
adaptive.learner.learner2D.uniform_loss,
adaptive.learner.learner2D.minimize_triangle_surface_loss,
adaptive.learner.learner2D.resolution_loss_function(),
adaptive.learner.learner2D.thresholded_loss_function(),
),
),
LearnerND: (
Expand Down

0 comments on commit 43a0855

Please sign in to comment.