Ignore:
Timestamp:
03/05/12 19:03:16 (2 years ago)
Author:
Lan Zagar <lan.zagar@…>
Branch:
default
rebase_source:
3d409cbe787f29218371d4ae07480b5a5c8b1a12
Message:

Changed to correct formulation of ridge regression problem.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/regression/linear.py

    r10431 r10436  
    260260            cov = pinv(dot(dot(X.T, W), X)) 
    261261        else: 
    262             cov = pinv(dot(dot(X.T, W), X) - self.ridge_lambda * numpy.eye(m)) 
     262            cov = pinv(dot(dot(X.T, W), X) + self.ridge_lambda * numpy.eye(m)) 
    263263            # TODO: find inferential properties of the estimators 
    264264            compute_stats = False  
Note: See TracChangeset for help on using the changeset viewer.