[Scipy-tickets] [SciPy] #1774: Jaccard

SciPy Trac scipy-tickets@scipy....
Thu Nov 15 09:30:37 CST 2012


#1774: Jaccard
--------------------------------------+-------------------------------------
 Reporter:  vinigracindo              |       Owner:  somebody   
     Type:  defect                    |      Status:  new        
 Priority:  high                      |   Milestone:  Unscheduled
Component:  scipy.spatial             |     Version:  0.9.0      
 Keywords:  jaccard, distance, error  |  
--------------------------------------+-------------------------------------
 Result Error.

 Output:

 {{{
 >>> X = [[1,2,3,4], [1,2,4,3]]
 >>> scipy.spatial.distance.cdist(X, X, 'jaccard')
 array([[ 0.,  0.5],
        [ 0.5, 0. ]])
 }}}

 Expected Output:
 {{{
 >>> X = [[1,2,3,4], [1,2,4,3]]
 >>> scipy.spatial.distance.cdist(X, X, 'jaccard')
 array([[ 0.,  0.],
        [ 0.,  0.]])
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1774>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list