Changeset 10647:3894acc4ef05 in orange for Orange/projection/linear.py
 Timestamp:
 03/26/12 17:12:12 (2 years ago)
 Branch:
 default
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

Orange/projection/linear.py
r10645 r10647 937 937 in xrange(len(data_matrix))], False) 938 938 pca = pca(data.Table(domain, data_matrix.T)) 939 vals, vectors = pca. eigen_values, pca.projection939 vals, vectors = pca.variances, pca.projection 940 940 elif method == DR_SPCA and self.graph.data_has_class: 941 941 pca = Spca(standardize=False, max_components=ncomps, … … 945 945 pca = pca(data.Table(domain, 946 946 numpy.hstack([data_matrix.T, numpy.array(class_array, ndmin=2).T]))) 947 vals, vectors = pca. eigen_values, pca.projection947 vals, vectors = pca.variances, pca.projection 948 948 elif method == DR_PLS and self.graph.data_has_class: 949 949 data_matrix = data_matrix.transpose() … … 1309 1309 1310 1310 def __init__(self, standardize=True, max_components=0, variance_covered=1, 1311 use_generalized_eigenvectors=0 ):1311 use_generalized_eigenvectors=0, ddof=1): 1312 1312 self.standardize = standardize 1313 1313 self.max_components = max_components 1314 1314 self.variance_covered = min(1, variance_covered) 1315 1315 self.use_generalized_eigenvectors = use_generalized_eigenvectors 1316 self.ddof=ddof 1316 1317 1317 1318 def __call__(self, dataset):
Note: See TracChangeset
for help on using the changeset viewer.