From 81ead5873079b12e201bbfd01d4a2edbda1946b8 Mon Sep 17 00:00:00 2001 From: Kirill Mishchenko Date: Tue, 4 Jul 2017 15:23:24 +0500 Subject: [PATCH] Add descriptions for the tests --- src/mlpack/tests/cv_test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/mlpack/tests/cv_test.cpp b/src/mlpack/tests/cv_test.cpp index d3d834c029..59f04c8415 100644 --- a/src/mlpack/tests/cv_test.cpp +++ b/src/mlpack/tests/cv_test.cpp @@ -187,6 +187,10 @@ BOOST_AUTO_TEST_CASE(TakesNumClassesTest) "Value should be false"); } +/** + * Test the simple cross-validation strategy implementation with the Accuracy + * metric. + */ BOOST_AUTO_TEST_CASE(SimpleCVAccuracyTest) { // Using the first half of data for training and the rest for validation. @@ -200,6 +204,9 @@ BOOST_AUTO_TEST_CASE(SimpleCVAccuracyTest) BOOST_REQUIRE_CLOSE(cv.Evaluate(), 0.75, 1e-5); } +/** + * Test the simple cross-validation strategy implementation with the MSE metric. + */ BOOST_AUTO_TEST_CASE(SimpleCVMSETest) { // Using the first two points for training and remaining three for validation. @@ -246,6 +253,10 @@ arma::Row PredictLabelsWithDT(const arma::mat& data, return predictedLabels; } +/** + * Test the simple cross-validation strategy implementation with decision trees + * constructed in multiple ways. + */ BOOST_AUTO_TEST_CASE(SimpleCVWithDTTest) { arma::mat data;