Changeset 10616:0ef88f0d8128 in orange
 Timestamp:
 03/22/12 17:46:20 (2 years ago)
 Branch:
 default
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Orange/regression/linear.py
r10615 r10616 134 134 from Orange import statc as stats 135 135 136 from numpy import dot, sqrt 136 from numpy import dot, sqrt, std 137 137 from numpy.linalg import inv, pinv 138 138 … … 255 255 mu_y, sigma_y = numpy.mean(y), numpy.std(y) 256 256 if m > 0: 257 cov_x = numpy.cov(X, rowvar=0)258 257 # standardized coefficients 259 std_coefficients = s qrt(cov_x.diagonal()) / sigma_y * coefficients258 std_coefficients = std(X, axis=0, ddof=1) / sigma_y * coefficients 260 259 else: 261 260 std_coefficients = None
Note: See TracChangeset
for help on using the changeset viewer.