[mlpack-git] mlpack-2.0.x: Fix parameter name issues. (da1425c)
gitdub at mlpack.org
gitdub at mlpack.org
Wed Jul 20 15:31:36 EDT 2016
Repository : https://github.com/mlpack/mlpack
On branch : mlpack-2.0.x
Link : https://github.com/mlpack/mlpack/compare/e434bc4ac042534529a2a440a44d86935b4d7164...fc4195d27bb9e642356a384d1fa6fe10cbdf89a6
>---------------------------------------------------------------
commit da1425c9d9549f21dd7ad39b20d50805251d3674
Author: Ryan Curtin <ryan at ratml.org>
Date: Wed Jul 13 15:57:43 2016 -0400
Fix parameter name issues.
>---------------------------------------------------------------
da1425c9d9549f21dd7ad39b20d50805251d3674
src/mlpack/methods/gmm/gmm_probability_main.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/mlpack/methods/gmm/gmm_probability_main.cpp b/src/mlpack/methods/gmm/gmm_probability_main.cpp
index 77ca32a..97dc2e9 100644
--- a/src/mlpack/methods/gmm/gmm_probability_main.cpp
+++ b/src/mlpack/methods/gmm/gmm_probability_main.cpp
@@ -37,7 +37,7 @@ int main(int argc, char** argv)
const string inputFile = CLI::GetParam<string>("input_file");
const string inputModelFile = CLI::GetParam<string>("input_model_file");
- const string outputFile = CLI::GetParam<string>("input_model_file");
+ const string outputFile = CLI::GetParam<string>("output_file");
if (CLI::HasParam("output_file"))
Log::Warn << "--output_file (-o) is not specified;"
@@ -45,10 +45,10 @@ int main(int argc, char** argv)
// Get the GMM and the points.
GMM gmm;
- data::Load(inputFile, "gmm", gmm);
+ data::Load(inputModelFile, "gmm", gmm);
arma::mat dataset;
- data::Load(inputModelFile, dataset);
+ data::Load(inputFile, dataset);
// Now calculate the probabilities.
arma::rowvec probabilities(dataset.n_cols);
More information about the mlpack-git
mailing list