Permalink
Browse files

Indexing in Nearest Neighbor classifier fixed. Thanks to Marius Raben…

…arivo for reporting.
  • Loading branch information...
1 parent 1e59fd2 commit bbeeb1d3a4c91e9333f505f8fc9f12f2be0e7843 @bytefish committed Mar 9, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 py/facerec/classifier.py
@@ -22,7 +22,7 @@ def __init__(self, dist_metric=EuclideanDistance(), k=1):
def compute(self, X, y):
self.X = X
- self.y = y
+ self.y = np.asarray(y)
def predict(self, q):
"""

0 comments on commit bbeeb1d

Please sign in to comment.