[mlpack-svn] [MLPACK] #227: GMM Constructor Bug -> Fitter not initialized in one version
MLPACK Trac
trac at coffeetalk-1.cc.gatech.edu
Tue Apr 17 05:12:31 EDT 2012
#227: GMM Constructor Bug -> Fitter not initialized in one version
--------------------+-------------------------------------------------------
Reporter: Adam | Owner:
Type: defect | Status: new
Priority: major | Milestone:
Component: mlpack | Keywords:
Blocking: | Blocked By:
--------------------+-------------------------------------------------------
I believe you have made a mistake in one of the constructors for the GMM
class.
GMM(const std::vector<arma::vec>& means,
const std::vector<arma::mat>& covariances,
const arma::vec& weights) :
gaussians(means.size()),
dimensionality((!means.empty()) ? means[0].n_elem : 0),
means(means),
covariances(covariances),
weights(weights) { /* nothing to do */ }
You don't initialize the fitter (as is done with the other constructors)
and any call to this constructor in code which attempts to use it results
in an error.
--
Ticket URL: <http://trac.research.cc.gatech.edu/fastlab/ticket/227>
MLPACK <www.fast-lab.org>
MLPACK is an intuitive, fast, and scalable C++ machine learning library developed by the FASTLAB at Georgia Tech under Dr. Alex Gray.
More information about the mlpack-svn
mailing list