data

data

The data module takes care of data generation.

class NumpyDomainGenerator(boundaries: Dict[str, Tuple[float, float]])[source]

Bases: DataGenerator

Generate a uniform DataSample as a domain for a Function.

Parameters

boundaries – A mapping of the keys in the DataSample that is to be generated. The boundaries have to be a tuple of a minimum and a maximum value that define the range for each key in the DataSample.

generate(size: int, rng: RealNumberGenerator) Dict[str, ndarray][source]
class IntensityDistributionGenerator(domain_generator: Union[DataGenerator, WeightedDataGenerator], function: Function, domain_transformer: Optional[DataTransformer] = None, bunch_size: int = 50000)[source]

Bases: DataGenerator

Generate an hit-and-miss DataSample distribution for a Function.

Parameters
generate(size: int, rng: RealNumberGenerator) Dict[str, ndarray][source]

Submodules and Subpackages