[mlpack-svn] r16802 - mlpack/trunk/src/mlpack/methods/perceptron
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Wed Jul 9 16:20:56 EDT 2014
Author: rcurtin
Date: Wed Jul 9 16:20:56 2014
New Revision: 16802
Log:
Very minor changes.
Modified:
mlpack/trunk/src/mlpack/methods/perceptron/perceptron_impl.hpp
Modified: mlpack/trunk/src/mlpack/methods/perceptron/perceptron_impl.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/perceptron/perceptron_impl.hpp (original)
+++ mlpack/trunk/src/mlpack/methods/perceptron/perceptron_impl.hpp Wed Jul 9 16:20:56 2014
@@ -73,7 +73,7 @@
// Check whether prediction is correct.
if (maxIndexRow != classLabels(0, j))
{
- // Due to incorrect prediction, convergence set to 0.
+ // Due to incorrect prediction, convergence set to false.
converged = false;
tempLabel = labels(0, j);
// Send maxIndexRow for knowing which weight to update, send j to know
@@ -95,7 +95,8 @@
*/
template <typename LearnPolicy, typename WeightInitializationPolicy, typename MatType>
void Perceptron<LearnPolicy, WeightInitializationPolicy, MatType>::Classify(
- const MatType& test, arma::Row<size_t>& predictedLabels)
+ const MatType& test,
+ arma::Row<size_t>& predictedLabels)
{
arma::mat tempLabelMat;
arma::uword maxIndexRow, maxIndexCol;
More information about the mlpack-svn
mailing list