Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upList 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.