Changes in [10606:4ea62a7a1910:10607:4cec6c7c8129] in orange
 Location:
 Orange
 Files:

 2 edited
Legend:
 Unmodified
 Added
 Removed

Orange/projection/linear.py
r10580 r10604 1556 1556 1557 1557 x_axis = range(len(self.eigen_values)) 1558 # x_labels = ["PC%d" % (i + 1, ) for i in x_axis] 1559 1560 # ax.set_xticks(x_axis) 1561 # ax.set_xticklabels(x_labels) 1562 # plt.setp(ax.get_xticklabels(), "rotation", 90) 1558 if len(x_axis) < 5: 1559 ax.set_xticks(x_axis) 1563 1560 plt.grid(True) 1564 1561 
Orange/regression/linear.py
r10599 r10605 246 246 247 247 if self.ridge_lambda: 248 cov += self.ridge_lambda * numpy.eye(m + self.intercept) 248 stride = cov.shape[0] + 1 249 cov.flat[self.intercept * stride::stride] += self.ridge_lambda 249 250 250 251 # adds some robustness by computing the pseudo inverse; … … 257 258 if m > 0: 258 259 cov_x = numpy.cov(X, rowvar=0) 259 260 260 # standardized coefficients 261 261 std_coefficients = sqrt(cov_x.diagonal()) / sigma_y * coefficients … … 284 284 r2 = ssr / sst 285 285 r2adj = 1  (1  r2) * (n  1) / (n  m  1) 286 F = (ssr / m) / (sst  ssr / (n  m  1)) 286 F = (ssr / m) / (sst  ssr / (n  m  1)) if m else None 287 287 df = n  2 288 288 sigma_square = sse / (n  m  1)
Note: See TracChangeset
for help on using the changeset viewer.