---
name: "mlpack_gmm_generate"
section: "1"
platform: "linux"
package: "mlpack-bin"
version: "4.6.0-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mlpack_gmm_generate"
---

# mlpack\_gmm\_generate(1)

gmm sample generator

## NAME

**mlpack\_gmm\_generate** - gmm sample generator

## SYNOPSIS

```
 mlpack_gmm_generate -m unknown -n int [-s int] [-V bool] [-o unknown] [-h -v]
```

## DESCRIPTION

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\_file** (**-m**)' parameter. The number of samples to generate is specified by the '**--samples** (**-n**)' parameter. Output samples may be saved with the '**--output\_file** (**-o**)' output parameter.

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

$ **mlpack\_gmm\_generate** **--input\_model\_file** gmm.bin **--samples** 100 **--output\_file** samples.csv

## REQUIRED INPUT OPTIONS

- **--input\_model\_file (-m) \[*unknown*\]**

  Input GMM model to generate samples from.

- **--samples (-n) \[*int*\]**

  Number of samples to generate.

## OPTIONAL INPUT OPTIONS

- **--help (-h) \[*bool*\]**

  Default help info.

- **--info \[string\]**

  Print help on a specific option. Default value ''.

- **--seed (-s) \[*int*\]**

  Random seed. If 0, 'std::time(NULL)' is used.  Default value 0.

- **--verbose (-v) \[*bool*\]**

  Display informational messages and the full list of parameters and timers at the end of execution.

- **--version (-V) \[*bool*\]**

  Display the version of mlpack.

## OPTIONAL OUTPUT OPTIONS

**--output\_file** (**-o**) \[*unknown*\] Matrix to save output samples in.

## ADDITIONAL INFORMATION

For further information, including relevant papers, citations, and theory, consult the documentation found at http://www.mlpack.org or included with your distribution of mlpack.
