Package PyML :: Package containers :: Module aggregate :: Class DataAggregate
[frames] | no frames]

Class DataAggregate

source code

              object --+    
                       |    
baseDatasets.BaseDataSet --+
                           |
                          DataAggregate

An aggregate of datasets. a DataAggregate object contains a list of datasets in its datas attribute, and behaves like a dataset when it comes to copy construction, so it can be used as a dataset object when it comes to testing classifiers. USAGE: DataAggregate(list) - construct an object out of a list of datasets (they do not have to be of the same kind! It is assumed that all datasets are the same length, and have the same labels DataAggregate(other[,optional arguments]) - copy construction - all options supported by the dataset classes can be used.

Instance Methods
 
__init__(self, arg, *opt, **args)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__len__(self) source code
 
__repr__(self)
repr(x)
source code

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __str__

    Inherited from baseDatasets.BaseDataSet
 
attachKernel(self, kernel='linear', **args) source code
 
attachLabels(self, labels) source code
 
copy(self, other, patterns, deepcopy)
Each class that wants to use the generic copy constructor needs to define this function for doing class-specific copying
source code
 
copyConstruct(self, other, **args) source code
 
getKernelMatrix(self)
returns the kernel matrix as a numpy array
source code
 
getTestingFunc(self) source code
 
getTrainingFunc(self) source code
 
registerAttribute(self, attributeName, attributeValue=None, action=None) source code
 
setTestingFunc(self, func) source code
 
setTrainingFunc(self, func) source code
 
test(self, trainingData, **args) source code
 
train(self, **args) source code
Class Variables
    Inherited from baseDatasets.BaseDataSet
  isVector = False
  testingFunc = property(getTestingFunc, setTestingFunc, None, '...
  trainingFunc = property(getTrainingFunc, setTrainingFunc, None...
  type = 'dataset'
Properties

Inherited from object: __class__

Method Details

__init__(self, arg, *opt, **args)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)