nanshe.misc.random_dictionary_learning_data module¶
random_dictionary_learning_data supports generating synthetic data.
Overview¶
The module random_dictionary_learning_data provides a way of generating
synthetic data for testing the segmentation algorithm against. Moving forward
the useful content in here will be refactored and moved into the data
module. So, depending on this module is unwise.
API¶
-
class
nanshe.misc.random_dictionary_learning_data.DictionaryLearningRandomDataGenerator(frame_shape, num_objects, num_groups, num_frames, mean_group_size, object_spread, object_max_intensity, object_min_intensity, background_noise_intensity)[source]¶ Bases:
objectA Random Generator that build pseudo-data similar in nature to that which the ADINA algorithm is run.
-
class
nanshe.misc.random_dictionary_learning_data.DictionaryLearningRandomDataSample[source]¶ Bases:
objectEssentially a struct with its values set at runtime by DictionaryLearningRandomDataGenerator calls.
-
class
nanshe.misc.random_dictionary_learning_data.MappingDiscreteGeometricDistributionGenerator(*args)[source]¶ Bases:
objectA random generator of groups. Each group has a size that is geometrically distributed. However, the individuals chosen for the group are all equally likely.