mlpack
|
#include <mlpack/prereqs.hpp>
#include <mlpack/core/util/io.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include "gmm.hpp"
Functions | |
BINDING_NAME ("GMM Sample Generator") | |
BINDING_SHORT_DESC ("A sample generator for pre-trained GMMs. Given a pre-trained GMM, this " "can sample new points randomly from that distribution.") | |
BINDING_LONG_DESC ("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 "+PRINT_PARAM_STRING("input_model")+" parameter. The number " "of samples to generate is specified by the "+PRINT_PARAM_STRING("samples")+" parameter. Output samples may be " "saved with the "+PRINT_PARAM_STRING("output")+" output parameter.") | |
BINDING_EXAMPLE ("The following command can be used to generate 100 samples from the pre-" "trained GMM "+PRINT_MODEL("gmm")+" and store those generated " "samples in "+PRINT_DATASET("samples")+":" "\"+PRINT_CALL("gmm_generate", "input_model", "gmm", "samples", 100, "output", "samples")) | |
BINDING_SEE_ALSO ("@gmm_train", "#gmm_train") | |
BINDING_SEE_ALSO ("@gmm_probability", "#gmm_probability") | |
BINDING_SEE_ALSO ("Gaussian Mixture Models on Wikipedia", "https://en.wikipedia.org/wiki/Mixture_model#Gaussian_mixture_model") | |
BINDING_SEE_ALSO ("mlpack::gmm::GMM class documentation", "@doxygen/classmlpack_1_1gmm_1_1GMM.html") | |
PARAM_MODEL_IN_REQ (GMM, "input_model", "Input GMM model to generate samples " "from.", "m") | |
PARAM_INT_IN_REQ ("samples", "Number of samples to generate.", "n") | |
PARAM_MATRIX_OUT ("output", "Matrix to save output samples in.", "o") | |
PARAM_INT_IN ("seed", "Random seed. If 0, 'std::time(NULL)' is used.", "s", 0) | |
Load a GMM from file, then generate samples from it.
mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.