[mlpack] 139/324: Trivial spacing fixes.

Barak A. Pearlmutter barak+git at cs.nuim.ie
Sun Aug 17 08:22:04 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 eb12d66d37ed82465b2c7935bbf52f4f33207986
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Tue Jul 8 11:27:44 2014 +0000

    Trivial spacing fixes.
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16778 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/tests/decision_stump_test.cpp | 36 ++++++++++++++++----------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/src/mlpack/tests/decision_stump_test.cpp b/src/mlpack/tests/decision_stump_test.cpp
index 04fbf41..d6e4791 100644
--- a/src/mlpack/tests/decision_stump_test.cpp
+++ b/src/mlpack/tests/decision_stump_test.cpp
@@ -104,11 +104,11 @@ BOOST_AUTO_TEST_CASE(PerfectSplitOnZero)
   Row<size_t> predictedLabels(testingData.n_cols);
   ds.Classify(testingData, predictedLabels);
 
-  BOOST_CHECK_EQUAL(predictedLabels(0,0),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,1),1);
-  BOOST_CHECK_EQUAL(predictedLabels(0,2),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,3),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,4),1);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 0), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 1), 1);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 2), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 3), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 4), 1);
 }
 
 /**
@@ -135,7 +135,7 @@ BOOST_AUTO_TEST_CASE(BinningTesting)
   Row<size_t> predictedLabels(testingData.n_cols);
   ds.Classify(testingData, predictedLabels);
 
-  BOOST_CHECK_EQUAL(predictedLabels(0,0),0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 0), 0);
 }
 
 /**
@@ -165,10 +165,10 @@ BOOST_AUTO_TEST_CASE(PerfectMultiClassSplit)
   Row<size_t> predictedLabels(testingData.n_cols);
   ds.Classify(testingData, predictedLabels);
 
-  BOOST_CHECK_EQUAL(predictedLabels(0,0),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,1),1);
-  BOOST_CHECK_EQUAL(predictedLabels(0,2),2);
-  BOOST_CHECK_EQUAL(predictedLabels(0,3),3);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 0), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 1), 1);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 2), 2);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 3), 3);
 }
 
 /**
@@ -200,14 +200,14 @@ BOOST_AUTO_TEST_CASE(MultiClassSplit)
   Row<size_t> predictedLabels(testingData.n_cols);
   ds.Classify(testingData, predictedLabels);
 
-  BOOST_CHECK_EQUAL(predictedLabels(0,0),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,1),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,2),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,3),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,4),0);
-  BOOST_CHECK_EQUAL(predictedLabels(0,5),1);
-  BOOST_CHECK_EQUAL(predictedLabels(0,6),2);
-  BOOST_CHECK_EQUAL(predictedLabels(0,7),2);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 0), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 1), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 2), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 3), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 4), 0);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 5), 1);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 6), 2);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 7), 2);
 }
 
 BOOST_AUTO_TEST_SUITE_END();

-- 
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