[mlpack-svn] r10494 - mlpack/trunk/src/mlpack/methods/naive_bayes

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Thu Dec 1 12:57:02 EST 2011


Author: rcurtin
Date: 2011-12-01 12:57:02 -0500 (Thu, 01 Dec 2011)
New Revision: 10494

Modified:
   mlpack/trunk/src/mlpack/methods/naive_bayes/simple_nbc.cpp
   mlpack/trunk/src/mlpack/methods/naive_bayes/simple_nbc.hpp
Log:
Remove unused PARAM_*.


Modified: mlpack/trunk/src/mlpack/methods/naive_bayes/simple_nbc.cpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/naive_bayes/simple_nbc.cpp	2011-12-01 17:11:49 UTC (rev 10493)
+++ mlpack/trunk/src/mlpack/methods/naive_bayes/simple_nbc.cpp	2011-12-01 17:57:02 UTC (rev 10494)
@@ -32,9 +32,6 @@
   Log::Info << number_examples << " examples with " << number_features
       << " features each" << std::endl;
 
-  CLI::GetParam<int>("nbc/features") = number_features;
-  CLI::GetParam<int>("nbc/examples") = number_examples;
-
   // Calculate the class probabilities as well as the sample mean and variance
   // for each of the features with respect to each of the labels.
   for (size_t i = 0; i < number_of_classes_; i++ )
@@ -89,7 +86,6 @@
   Log::Info << test_data.n_cols << " test cases with " << number_features
       << " features each" << std::endl;
 
-  CLI::GetParam<int>("nbc/tests") = test_data.n_cols;
   // Calculate the joint probability for each of the data points for each of the
   // classes.
 

Modified: mlpack/trunk/src/mlpack/methods/naive_bayes/simple_nbc.hpp
===================================================================
--- mlpack/trunk/src/mlpack/methods/naive_bayes/simple_nbc.hpp	2011-12-01 17:11:49 UTC (rev 10493)
+++ mlpack/trunk/src/mlpack/methods/naive_bayes/simple_nbc.hpp	2011-12-01 17:57:02 UTC (rev 10494)
@@ -16,9 +16,6 @@
 namespace naive_bayes {
 
 PARAM_INT_REQ("classes", "The number of classes present in the data.", "nbc");
-PARAM_INT("features", "The number of features in the data.", "nbc", 0);
-PARAM_INT("examples", "The number of examples in the training set.", "nbc", 0);
-PARAM_INT("tests", "The number of data points in the test set.", "nbc", 0);
 
 PARAM_MODULE("nbc", "Trains the classifier using the training set "
     "and outputs the results for the test set.");




More information about the mlpack-svn mailing list