[mlpack-svn] r13227 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Jul 13 11:43:38 EDT 2012
Author: rcurtin
Date: 2012-07-13 11:43:38 -0400 (Fri, 13 Jul 2012)
New Revision: 13227
Modified:
mlpack/trunk/src/mlpack/tests/det_test.cpp
Log:
Update test to modified API.
Modified: mlpack/trunk/src/mlpack/tests/det_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/det_test.cpp 2012-07-13 15:43:19 UTC (rev 13226)
+++ mlpack/trunk/src/mlpack/tests/det_test.cpp 2012-07-13 15:43:38 UTC (rev 13227)
@@ -113,7 +113,7 @@
DTree<>* testDTree = new DTree<>(&test_data);
size_t ob_dim, true_dim, ob_ind, true_ind;
- long double true_left_error, ob_left_error, true_right_error, ob_right_error;
+ double true_left_error, ob_left_error, true_right_error, ob_right_error;
true_dim = 2;
true_ind = 1;
@@ -122,9 +122,8 @@
true_right_error = -1.0 * exp(2 * log(3.0 / 5.0) - (log(7.0) + log(4.0) +
log(2.5)));
- BOOST_REQUIRE(testDTree->FindSplit_
- (test_data, &ob_dim, &ob_ind, &ob_left_error,
- &ob_right_error, 2, 1));
+ BOOST_REQUIRE(testDTree->FindSplit(test_data, ob_dim, ob_ind, ob_left_error,
+ ob_right_error, 2, 1));
BOOST_REQUIRE(true_dim == ob_dim);
BOOST_REQUIRE(true_ind == ob_ind);
More information about the mlpack-svn
mailing list