[mlpack-svn] r15333 - mlpack/trunk/src/mlpack/methods/nca

fastlab-svn at coffeetalk-1.cc.gatech.edu fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Jun 26 07:16:27 EDT 2013


Author: marcus
Date: Wed Jun 26 07:16:26 2013
New Revision: 15333

Log:
Fix ambiguous matches for -N and -L and set default optimzer sgd.

Modified:
   mlpack/trunk/src/mlpack/methods/nca/nca_main.cpp

Modified: mlpack/trunk/src/mlpack/methods/nca/nca_main.cpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/nca/nca_main.cpp	(original)
+++ mlpack/trunk/src/mlpack/methods/nca/nca_main.cpp	Wed Jun 26 07:16:26 2013
@@ -65,7 +65,7 @@
 PARAM_STRING_REQ("output_file", "Output file for learned distance matrix.",
     "o");
 PARAM_STRING("labels_file", "File of labels for input dataset.", "l", "");
-PARAM_STRING("optimizer", "Optimizer to use; \"sgd\" or \"lbfgs\".", "O", "");
+PARAM_STRING("optimizer", "Optimizer to use; \"sgd\" or \"lbfgs\".", "O", "sgd");
 
 PARAM_FLAG("normalize", "Use a normalized starting point for optimization. This"
     " is useful for when points are far apart, or when SGD is returning NaN.",
@@ -81,12 +81,12 @@
 PARAM_FLAG("linear_scan", "Don't shuffle the order in which data points are "
     "visited for SGD.", "L");
 
-PARAM_INT("num_basis", "Number of memory points to be stored for L-BFGS.", "N",
+PARAM_INT("num_basis", "Number of memory points to be stored for L-BFGS.", "B",
     5);
 PARAM_DOUBLE("armijo_constant", "Armijo constant for L-BFGS.", "A", 1e-4);
 PARAM_DOUBLE("wolfe", "Wolfe condition parameter for L-BFGS.", "w", 0.9);
 PARAM_INT("max_line_search_trials", "Maximum number of line search trials for "
-    "L-BFGS.", "L", 50);
+    "L-BFGS.", "T", 50);
 PARAM_DOUBLE("min_step", "Minimum step of line search for L-BFGS.", "m", 1e-20);
 PARAM_DOUBLE("max_step", "Maximum step of line search for L-BFGS.", "M", 1e20);
 



More information about the mlpack-svn mailing list