Skip to content

Commit

Permalink
Fix some typos in docstrings (#303)
Browse files Browse the repository at this point in the history
Typos in median_distance and BlockShuffleSplit.
Cherry-picks @jcrawfords original work on this and adds the change 
requested.
Fixes #287
  • Loading branch information
dcslagel authored Nov 30, 2020
1 parent 86f8b61 commit 06a74a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion verde/distances.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def median_distance(coordinates, k_nearest=1, projection=None):
distance to its *k_nearest* neighbors among the other points in the
dataset. Sparse uniformly spaced datasets can use *k_nearest* of 1.
Datasets with points clustered into tight groups (e.g., densely sampled
along a flight line or ship treck) will have very small distances to the
along a flight line or ship track) will have very small distances to the
closest neighbors, which is not representative of the actual median spacing
because it doesn't take the spacing between lines into account. In these
cases, a median of the 10 or 20 nearest neighbors might be more
Expand Down
2 changes: 1 addition & 1 deletion verde/model_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class BlockShuffleSplit(BaseBlockCrossValidator):
The number of splits generated per iteration to try to balance the
amount of data in each set so that *test_size* and *train_size* are
respected. If 1, then no extra splits are generated (essentially
disabling the balacing). Must be >= 1.
disabling the balancing). Must be >= 1.
See also
--------
Expand Down

0 comments on commit 06a74a4

Please sign in to comment.