mlpack.gmm_generate

gmm_generate(...)
GMM Sample Generator

>>> from mlpack import gmm_generate

This program is able to generate samples from a pre-trained GMM (use gmm_train to train a GMM). The pre-trained GMM must be specified with the 'input_model' parameter. The number of samples to generate is specified by the 'samples' parameter. Output samples may be saved with the 'output' output parameter.

The following command can be used to generate 100 samples from the pre-trained GMM 'gmm' and store those generated samples in 'samples':

>>> gmm_generate(input_model=gmm, samples=100)
>>> samples = output['output']

input options

output options

The return value from the binding is a dict containing the following elements: