[mlpack-svn] r13263 - mlpack/trunk/src/mlpack/tests
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Fri Jul 20 13:18:56 EDT 2012
Author: rcurtin
Date: 2012-07-20 13:18:55 -0400 (Fri, 20 Jul 2012)
New Revision: 13263
Modified:
mlpack/trunk/src/mlpack/tests/det_test.cpp
Log:
Modified API for ComputeVariableImportance().
Modified: mlpack/trunk/src/mlpack/tests/det_test.cpp
===================================================================
--- mlpack/trunk/src/mlpack/tests/det_test.cpp 2012-07-20 17:18:48 UTC (rev 13262)
+++ mlpack/trunk/src/mlpack/tests/det_test.cpp 2012-07-20 17:18:55 UTC (rev 13263)
@@ -296,10 +296,9 @@
DTree<> testDTree(test_data);
testDTree.Grow(test_data, o_test, false, 2, 1);
- arma::vec imps(3);
- imps.zeros();
+ arma::vec imps;
- testDTree.ComputeVariableImportance(&imps);
+ testDTree.ComputeVariableImportance(imps);
BOOST_REQUIRE_CLOSE((double) 0.0, imps[0], 1e-10);
BOOST_REQUIRE_CLOSE((double) (r_error - (rl_error + rr_error)), imps[1],
More information about the mlpack-svn
mailing list