Changeset 9125:e9b8067e686f in orange


Ignore:
Timestamp:
10/20/11 12:22:31 (2 years ago)
Author:
mocnik <mocnik@…>
Branch:
default
Convert:
a9c346d184939fd92f20ac955746fdeb968ba797
Message:

Fixed problem when normalizing with N-1, changed to N.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/Orange/distance/instances.py

    r8123 r9125  
    317317        data, cls, _ = newtable.to_numpy() 
    318318         
    319         covariance_matrix = numpy.cov(data, rowvar=0) 
     319        covariance_matrix = numpy.cov(data, rowvar=0, bias=1) 
    320320        inverse_covariance_matrix = linalg.pinv(covariance_matrix, rcond=1e-10) 
    321321         
Note: See TracChangeset for help on using the changeset viewer.