[mlpack] 89/149: The calculation here was actually incorrect.

Barak A. Pearlmutter barak+git at pearlmutter.net
Sat May 2 09:11:12 UTC 2015


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit f2134ee759a8d8f836cb9bf2840245e1bed1ed07
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Tue Nov 11 18:46:00 2014 +0000

    The calculation here was actually incorrect.
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@17317 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/tests/decision_stump_test.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/mlpack/tests/decision_stump_test.cpp b/src/mlpack/tests/decision_stump_test.cpp
index 325bbc6..26e9fe1 100644
--- a/src/mlpack/tests/decision_stump_test.cpp
+++ b/src/mlpack/tests/decision_stump_test.cpp
@@ -6,7 +6,7 @@
  */
 #include <mlpack/core.hpp>
 #include <mlpack/methods/decision_stump/decision_stump.hpp>
- 
+
 #include <boost/test/unit_test.hpp>
 #include "old_boost_test_definitions.hpp"
 
@@ -26,7 +26,7 @@ BOOST_AUTO_TEST_CASE(OneClass)
 {
   const size_t numClasses = 2;
   const size_t inpBucketSize = 6;
-  
+
   mat trainingData;
   trainingData << 2.4 << 3.8 << 3.8 << endr
                << 1   << 1   << 2   << endr
@@ -206,9 +206,9 @@ BOOST_AUTO_TEST_CASE(MultiClassSplit)
 
   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, 2), 1);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 3), 1);
+  BOOST_CHECK_EQUAL(predictedLabels(0, 4), 1);
   BOOST_CHECK_EQUAL(predictedLabels(0, 5), 1);
   BOOST_CHECK_EQUAL(predictedLabels(0, 6), 2);
   BOOST_CHECK_EQUAL(predictedLabels(0, 7), 2);

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