[mlpack] 163/324: Very minor changes.
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:22:06 UTC 2014
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to branch svn-trunk
in repository mlpack.
commit deed1e1c8e12b55f372ae17f2aedf2d9fe15d180
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Wed Jul 9 20:20:56 2014 +0000
Very minor changes.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16802 9d5b8971-822b-0410-80eb-d18c1038ef23
---
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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list