Skip to content

Commit c0012a9

Browse files
committed
fix typo in 'uniform_loss' doc-string, closes python-adaptive#127
1 parent f38d20f commit c0012a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

adaptive/learner/learner2D.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,13 +78,14 @@ def uniform_loss(ip):
7878
7979
Examples
8080
--------
81+
>>> from adaptive.learner.learner2D import uniform_loss
8182
>>> def f(xy):
8283
... x, y = xy
8384
... return x**2 + y**2
8485
>>>
8586
>>> learner = adaptive.Learner2D(f,
8687
... bounds=[(-1, -1), (1, 1)],
87-
... loss_per_triangle=uniform_sampling_2d)
88+
... loss_per_triangle=uniform_loss)
8889
>>>
8990
"""
9091
return np.sqrt(areas(ip))

0 commit comments

Comments
 (0)