Changeset 10201:7528b5e035bc in orange


Ignore:
Timestamp:
02/13/12 17:08:56 (2 years ago)
Author:
anzeh <anze.staric@…>
Branch:
default
Message:

Renamed parameter.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Orange/projection/pca.py

    r10181 r10201  
    153153        :rtype: :obj:`~Orange.data.Table` 
    154154        """ 
    155         if type(dataset) != Orange.data.Table: 
    156             dataset = Orange.data.Table([dataset]) 
    157  
    158         X = dataset.to_numpy_MA("a")[0] 
     155        if type(data) != Orange.data.Table: 
     156            data = Orange.data.Table([data]) 
     157 
     158        X = data.to_numpy_MA("a")[0] 
    159159        Xm, U = self.mean, self.eigen_vectors 
    160160        n, m = X.shape 
Note: See TracChangeset for help on using the changeset viewer.