[mlpack-git] master,mlpack-1.0.x: Very minor changes. (4812b37)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:52:34 EST 2015


Repository : https://github.com/mlpack/mlpack

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit 4812b379d841a4ac62e743a8449c66ce4e3f6317
Author: Ryan Curtin <ryan at ratml.org>
Date:   Wed Jul 9 20:20:56 2014 +0000

    Very minor changes.


>---------------------------------------------------------------

4812b379d841a4ac62e743a8449c66ce4e3f6317
 src/mlpack/methods/perceptron/perceptron_impl.hpp | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/perceptron/perceptron_impl.hpp b/src/mlpack/methods/perceptron/perceptron_impl.hpp
index 531b143..6284cb9 100644
--- a/src/mlpack/methods/perceptron/perceptron_impl.hpp
+++ b/src/mlpack/methods/perceptron/perceptron_impl.hpp
@@ -73,7 +73,7 @@ Perceptron<LearnPolicy, WeightInitializationPolicy, MatType>::Perceptron(
       // 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 @@ Perceptron<LearnPolicy, WeightInitializationPolicy, MatType>::Perceptron(
  */
 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-git mailing list