-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
List of metrics not allowed if X is a matrix. #20
Comments
Maybe this line: |
Thanks for the report. I have added the fix to master. To be on the safe side, I would always recommend converting |
Pretty sure this is fixed. Please re-open if not. |
List of metrics not allowed if X is a matrix.
I tried the option metric=list("cosine"=1:27, "categorical"=28) on my data (matrix with dimnames) and got this error:
Error in match.arg(metric, c("euclidean", "cosine", "manhattan", "hamming", : 'arg' should be one of “euclidean”, “cosine”, “manhattan”, “hamming”, “precomputed”
If I set X=as.data.frame(mydata) the error is gone.
Thanks.
The text was updated successfully, but these errors were encountered: