Ignore:
Timestamp:
03/02/12 16:17:14 (2 years ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
Message:

Fixes #1115.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/regression/linear.py

    r10348 r10428  
    239239            else: 
    240240                X = numpy.insert(A, 0, 1, axis=1) # adds a column of ones 
     241            m += 1 
    241242        else: 
    242243            X = A 
     
    259260            cov = pinv(dot(dot(X.T, W), X)) 
    260261        else: 
    261             cov = pinv(dot(dot(X.T, W), X) - self.ridge_lambda*numpy.eye(m+1)) 
     262            cov = pinv(dot(dot(X.T, W), X) - self.ridge_lambda*numpy.eye(m)) 
    262263            compute_stats = False # TO DO: find inferential properties of the estimators 
    263264        D = dot(dot(cov, X.T), W) 
Note: See TracChangeset for help on using the changeset viewer.