[mlpack-git] master: Fix bug introduced in previous commits. (f3bd5e8)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Fri Sep 4 13:33:04 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/424383cb02dcf2d73728e1c3c4b582bdb7cba627...f3bd5e8853a795f4ff41849dd8ef844d53199412

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

commit f3bd5e8853a795f4ff41849dd8ef844d53199412
Author: Ryan Curtin <ryan at ratml.org>
Date:   Fri Sep 4 17:30:58 2015 +0000

    Fix bug introduced in previous commits.


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

f3bd5e8853a795f4ff41849dd8ef844d53199412
 src/mlpack/methods/perceptron/perceptron_impl.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mlpack/methods/perceptron/perceptron_impl.hpp b/src/mlpack/methods/perceptron/perceptron_impl.hpp
index ad34b83..c11f14f 100644
--- a/src/mlpack/methods/perceptron/perceptron_impl.hpp
+++ b/src/mlpack/methods/perceptron/perceptron_impl.hpp
@@ -164,7 +164,7 @@ void Perceptron<LearnPolicy, WeightInitializationPolicy, MatType>::Train(
         // Send maxIndexRow for knowing which weight to update, send j to know
         // the value of the vector to update it with.  Send tempLabel to know
         // the correct class.
-        LP.UpdateWeights(data, weightVectors, biases, j, tempLabel, maxIndexCol,
+        LP.UpdateWeights(data, weightVectors, biases, j, tempLabel, maxIndexRow,
             D);
       }
     }



More information about the mlpack-git mailing list