Skip to content

Commit

Permalink
Minor commit.
Browse files Browse the repository at this point in the history
added .swp files in .gitignore for vim
changed 'features' to 'targets' in BaseEstimator error message
added space in docstring.
  • Loading branch information
NicolasHug committed Nov 17, 2016
1 parent 178e069 commit d298eda
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ build/
dist/
mla.egg-info/
.cache
*.swp
2 changes: 1 addition & 1 deletion mla/base/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def _setup_input(self, X, y=None):
y = np.array(y)

if y.size == 0:
raise ValueError('Number of features must be > 0')
raise ValueError('Number of targets must be > 0')

self.y = y

Expand Down
2 changes: 1 addition & 1 deletion mla/knn.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self, k=5, distance_func=euclidean):
----------
k : int, default 5
The number of neighbors to take into account.
distance_func: function, default euclidean distance
distance_func : function, default euclidean distance
A distance function taking two arguments. Any function from
scipy.spatial.distance will do.
"""
Expand Down

0 comments on commit d298eda

Please sign in to comment.