Package pycv :: Package cs :: Package ml :: Package cla :: Module cla :: Class CDataset
[hide private]
[frames] | no frames]

Class CDataset

source code

ml.Dataset --+
             |
            CDataset
Known Subclasses:
dataset.WeightedCDataset, score.ScoringCDataset

Instance Methods [hide private]
 
__init__(self, separated_input_data) source code
 
dofilter(self, j, filterarray)
Filter away some samples in class j.
source code
 
concat(self, j, input_data)
Concatenate a few samples to class j.
source code
Method Details [hide private]

__init__(self, separated_input_data)
(Constructor)

source code 
Overrides: ml.Dataset.__init__

dofilter(self, j, filterarray)

source code 
Filter away some samples in class j.
Parameters:
  • j (int) - class j
  • filterarray (a 'bool' numpy.array of size self.nspc[j]) - for each element, True if the associating example is to be kept
Returns:
fr: filtering rate, the new number of samples of class j divided
by the old number of samples of class j. The class is updated.

concat(self, j, input_data)

source code 

Concatenate a few samples to class j.

Output:
The CDataset is updated.
Parameters:
  • j (int) - class j
  • input_data (an array of samples) - new samples to be concatenated