Source code for pe.population.population

from abc import ABC, abstractmethod


[docs]class Population(ABC): """The abstract class that generates synthetic data."""
[docs] @abstractmethod def initial(self, label_info, num_samples): """Generate the initial synthetic data. :param label_info: The label info :type label_info: dict :param num_samples: The number of samples to generate :type num_samples: int """ ...
[docs] @abstractmethod def next(self, syn_data, num_samples): """Generate the next synthetic data. :param syn_data: The synthetic data :type syn_data: :py:class:`pe.data.data.Data` :param num_samples: The number of samples to generate :type num_samples: int """ ...