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

Class CDataGenerator

source code

ml.DataGenerator --+
                   |
                  CDataGenerator
Known Subclasses:
cv.face.frontalface_dset.FrontalFace_CDataGenerator, cv.face.frontalface_dset.NoScale_RotatedFrontalFace_CDataGenerator, cv.face.frontalface_dset.RotatedFrontalFace_CDataGenerator, toydata.Toy2BalancedDataGenerator, toydata.Toy3BalancedDataGenerator, toydata.ToyBalancedDataGenerator, toydata.ToyImbalancedDataGenerator

Instance Methods [hide private]
 
__init__(self, input_shape, J, dtype='float64') source code
 
generate(self, j)
Generate a random sample of class j.
source code
 
generate_set(self, j, N)
Generate a set of random samples of class j.
source code
Method Details [hide private]

__init__(self, input_shape, J, dtype='float64')
(Constructor)

source code 
Overrides: ml.DataGenerator.__init__

generate(self, j)

source code 

Generate a random sample of class j.

Input:
j: class j
Output:
input_point: a point of class j.

generate_set(self, j, N)

source code 

Generate a set of random samples of class j.

Input:
j: class j
Output:
input_data: an array of data points of class j.