Changeset 10428:32ba7cf019b6 in orange for Orange/regression/linear.py
 Timestamp:
 03/02/12 16:17:14 (2 years ago)
 Branch:
 default
 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.