src/mlpack/tests/cv_test.cpp
BOOST_AUTO_TEST_CASE(SupportsWeightsTest)
{
  static_assert(MetaInfoExtractor<LinearRegression>::SupportsWeights,
      "Value should be true");
  static_assert(MetaInfoExtractor<DecisionTree<>>::SupportsWeights,
      "Value should be true");
  static_assert(MetaInfoExtractor<DecisionTree<>, arma::mat, arma::urowvec,
      arma::Row<float>>::SupportsWeights, "Value should be true");

  static_assert(!MetaInfoExtractor<LARS>::SupportsWeights,
      "Value should be false");
  static_assert(!MetaInfoExtractor<LogisticRegression<>>::SupportsWeights,
      "Value should be false");
}
/**
 * Test MetaInfoExtractor correctly identifies whether a given machine learning
 * algorithm supports weighted learning.
 */
Test MetaInfoExtractor correctly identifies whether a given machine learning
algorithm supports weighted learning.
Test MetaInfoExtractor correctly identifies whether a given machine learning algorithm supports weighted learning .
BOOST_AUTO_TEST_CASE(SupportsWeightsTest)
{
  static_assert(MetaInfoExtractor<LinearRegression>::SupportsWeights,
      "Value should be true");
  static_assert(MetaInfoExtractor<DecisionTree<>>::SupportsWeights,
      "Value should be true");
  static_assert(MetaInfoExtractor<DecisionTree<>, arma::mat, arma::urowvec,
      arma::Row<float>>::SupportsWeights, "Value should be true");
  static_assert(!MetaInfoExtractor<LARS>::SupportsWeights,
      "Value should be false");
  static_assert(!MetaInfoExtractor<LogisticRegression<>>::SupportsWeights,
      "Value should be false");
}
BOOST_AUTO_TEST_CASE ( SupportsWeightsTest ) { static_assert ( MetaInfoExtractor < LinearRegression > :: SupportsWeights , " " ) ; static_assert ( MetaInfoExtractor < DecisionTree < > > :: SupportsWeights , " " ) ; static_assert ( MetaInfoExtractor < DecisionTree < > , arma :: mat , arma :: urowvec , arma :: Row < float > > :: SupportsWeights , " " ) ; static_assert ( ! MetaInfoExtractor < LARS > :: SupportsWeights , " " ) ; static_assert ( ! MetaInfoExtractor < LogisticRegression < > > :: SupportsWeights , " " ) ; }
Test MetaInfoExtractor correctly identifies whether a given machine learning
 algorithm supports weighted learning.
Test MetaInfoExtractor correctly identifies whether a given machine learning algorithm supports weighted learning .