Changes in [10429:23daf949f7b2:10430:463ff0666c30] in orange
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Orange/regression/linear.py
r10348 r10428 239 239 else: 240 240 X = numpy.insert(A, 0, 1, axis=1) # adds a column of ones 241 m += 1 241 242 else: 242 243 X = A … … 259 260 cov = pinv(dot(dot(X.T, W), X)) 260 261 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)) 262 263 compute_stats = False # TO DO: find inferential properties of the estimators 263 264 D = dot(dot(cov, X.T), W)
Note: See TracChangeset
for help on using the changeset viewer.