
Go to the source code of this file.
Functions | |
template < typename MatType >  | |
| void | LoadBostonHousingDataset (MatType &trainData, MatType &testData, arma::rowvec &trainResponses, arma::rowvec &testResponses, data::DatasetInfo &info) | 
| void | LogisticRegressionTestData (arma::mat &data, arma::mat &testData, arma::mat &shuffledData, arma::Row< size_t > &responses, arma::Row< size_t > &testResponses, arma::Row< size_t > &shuffledResponses) | 
| Create the data for the a logistic regression test.  More... | |
| double | RMSE (const arma::Row< double > &predictions, const arma::Row< double > &trueResponses) | 
This file provides some useful test function methods.
mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.
Definition in file test_function_tools.hpp.
| void LoadBostonHousingDataset | ( | MatType & | trainData, | 
| MatType & | testData, | ||
| arma::rowvec & | trainResponses, | ||
| arma::rowvec & | testResponses, | ||
| data::DatasetInfo & | info | ||
| ) | 
Definition at line 85 of file test_function_tools.hpp.
References mlpack::data::categorical, mlpack::data::Load(), DatasetMapper< PolicyType, InputType >::SetDimensionality(), mlpack::data::Split(), and DatasetMapper< PolicyType, InputType >::Type().
      
  | 
  inline | 
Create the data for the a logistic regression test.
| data | Matrix object to store the data into. | 
| testData | Matrix object to store the test data into. | 
| shuffledData | Matrix object to store the shuffled data into. | 
| responses | Matrix object to store the overall responses into. | 
| testResponses | Matrix object to store the test responses into. | 
| shuffledResponses | Matrix object to store the shuffled responses into. | 
Definition at line 34 of file test_function_tools.hpp.
References GaussianDistribution::Random().
      
  | 
  inline | 
Definition at line 108 of file test_function_tools.hpp.