Ignore:
Timestamp:
04/03/12 10:47:42 (2 years ago)
Author:
anze <anze.staric@…>
Branch:
default
Message:

Merged in patch from #1161.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/projection/linear.py

    r10647 r10715  
    13751375        n, m = Xd.shape 
    13761376        if n < m: 
    1377             C = numpy.dot(Xg.T, Xd.T) / (m - self.ddof) 
    1378             V, D, T = numpy.linalg.svd(C) 
    1379             U = numpy.dot(V.T, Xd) / numpy.sqrt(D.reshape(-1, 1) * (m - self.ddof)) 
     1377            _, D, U = numpy.linalg.svd(Xd, full_matrices=0) 
     1378            D *= D / (n - self.ddof) 
    13801379        else: 
    13811380            C = numpy.dot(Xg, Xd) / (n - self.ddof) 
Note: See TracChangeset for help on using the changeset viewer.