Package PyML :: Package containers :: Module baseDatasets :: Class BaseDataSet
[frames] | no frames]

Class BaseDataSet

source code

object --+
         |
        BaseDataSet

A base class for PyML dataset containers

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
setTrainingFunc(self, func) source code
 
getTrainingFunc(self) source code
 
setTestingFunc(self, func) source code
 
getTestingFunc(self) source code
 
train(self, **args) source code
 
test(self, trainingData, **args) source code
 
registerAttribute(self, attributeName, attributeValue=None, action=None) source code
 
copyConstruct(self, other, **args) 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
 
getKernelMatrix(self)
returns the kernel matrix as a numpy array
source code
 
attachKernel(self, kernel='linear', **args) source code
 
attachLabels(self, labels) source code

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

Class Variables
  type = 'dataset'
  isVector = False
  trainingFunc = property(getTrainingFunc, setTrainingFunc, None...
  testingFunc = property(getTestingFunc, setTestingFunc, None, '...
Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

Class Variable Details

trainingFunc

Value:
property(getTrainingFunc, setTrainingFunc, None, '_trainingFunc')

testingFunc

Value:
property(getTestingFunc, setTestingFunc, None, '_testingFunc')