You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mahout.apache.org by "Dan Filimon (JIRA)" <ji...@apache.org> on 2013/04/09 17:18:16 UTC
[jira] [Commented] (MAHOUT-1189) CosineDistanceMeasure doesn't
return 0 for two 0 vectors
[ https://issues.apache.org/jira/browse/MAHOUT-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13626706#comment-13626706 ]
Dan Filimon commented on MAHOUT-1189:
-------------------------------------
https://reviews.apache.org/r/10374/
> CosineDistanceMeasure doesn't return 0 for two 0 vectors
> --------------------------------------------------------
>
> Key: MAHOUT-1189
> URL: https://issues.apache.org/jira/browse/MAHOUT-1189
> Project: Mahout
> Issue Type: Bug
> Affects Versions: 0.8
> Reporter: Dan Filimon
> Priority: Minor
>
> CosineDistanceMeasure for two equal vectors should always return 0 like for any other distance measure, however it returns 1.
> This patch fixes this issue.
> Also, note that it's not necessarily obvious what the return value should be since the cosine of two 0-length vectors isn't defined.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira