mlpack
Functions
gmm_probability_main.cpp File Reference
#include <mlpack/prereqs.hpp>
#include <mlpack/core/util/io.hpp>
#include <mlpack/core/util/mlpack_main.hpp>
#include "gmm.hpp"
Include dependency graph for gmm_probability_main.cpp:
This graph shows which files directly or indirectly include this file:

Functions

 BINDING_NAME ("GMM Probability Calculator")
 
 BINDING_SHORT_DESC ("A probability calculator for GMMs. Given a pre-trained GMM and a set of " "points, this can compute the probability that each point is from the given" " GMM.")
 
 BINDING_LONG_DESC ("This program calculates the probability that given points came from a " "given GMM (that is, P(X | gmm)). The GMM is specified with the "+PRINT_PARAM_STRING("input_model")+" parameter, and the points are " "specified with the "+PRINT_PARAM_STRING("input")+" parameter. The " "output probabilities may be saved via the "+PRINT_PARAM_STRING("output")+" output parameter.")
 
 BINDING_EXAMPLE ("So, for example, to calculate the probabilities of each point in "+PRINT_DATASET("points")+" coming from the pre-trained GMM "+PRINT_MODEL("gmm")+", while storing those probabilities in "+PRINT_DATASET("probs")+", the following command could be used:" "\"+PRINT_CALL("gmm_probability", "input_model", "gmm", "input", "points", "output", "probs"))
 
 BINDING_SEE_ALSO ("@gmm_train", "#gmm_train")
 
 BINDING_SEE_ALSO ("@gmm_generate", "#gmm_generate")
 
 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 to use as model.", "m")
 
 PARAM_MATRIX_IN_REQ ("input", "Input matrix to calculate probabilities of.", "i")
 
 PARAM_MATRIX_OUT ("output", "Matrix to store calculated probabilities in.", "o")
 

Detailed Description

Author
Ryan Curtin

Given a GMM, calculate the probability of points coming 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.