src/mlpack/tests/cv_test.cpp
BOOST_AUTO_TEST_CASE(TakesNumClassesTest)
{
  static_assert(MetaInfoExtractor<DecisionTree<>>::TakesNumClasses,
      "Value should be true");
  static_assert(MetaInfoExtractor<SoftmaxRegression>::TakesNumClasses,
      "Value should be true");
  static_assert(!MetaInfoExtractor<LinearRegression>::TakesNumClasses,
      "Value should be false");
  static_assert(!MetaInfoExtractor<LARS>::TakesNumClasses,
      "Value should be false");
}
/**
 * Test MetaInfoExtractor correctly identifies whether a given machine learning
 * algorithm takes the numClasses parameter.
 */
Test MetaInfoExtractor correctly identifies whether a given machine learning
algorithm takes the numClasses parameter.
Test MetaInfoExtractor correctly identifies whether a given machine learning algorithm takes the numClasses parameter .
BOOST_AUTO_TEST_CASE(TakesNumClassesTest)
{
  static_assert(MetaInfoExtractor<DecisionTree<>>::TakesNumClasses,
      "Value should be true");
  static_assert(MetaInfoExtractor<SoftmaxRegression>::TakesNumClasses,
      "Value should be true");
  static_assert(!MetaInfoExtractor<LinearRegression>::TakesNumClasses,
      "Value should be false");
  static_assert(!MetaInfoExtractor<LARS>::TakesNumClasses,
      "Value should be false");
}
BOOST_AUTO_TEST_CASE ( TakesNumClassesTest ) { static_assert ( MetaInfoExtractor < DecisionTree < > > :: TakesNumClasses , " " ) ; static_assert ( MetaInfoExtractor < SoftmaxRegression > :: TakesNumClasses , " " ) ; static_assert ( ! MetaInfoExtractor < LinearRegression > :: TakesNumClasses , " " ) ; static_assert ( ! MetaInfoExtractor < LARS > :: TakesNumClasses , " " ) ; }
Test MetaInfoExtractor correctly identifies whether a given machine learning
 algorithm takes the numClasses parameter.
Test MetaInfoExtractor correctly identifies whether a given machine learning algorithm takes the numClasses parameter .