mlpack
Functions
test_function_tools.hpp File Reference
#include <mlpack/core.hpp>
#include <mlpack/methods/logistic_regression/logistic_regression.hpp>
#include <mlpack/core/data/split_data.hpp>
Include dependency graph for test_function_tools.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

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...
 
template<typename MatType >
void LoadBostonHousingDataset (MatType &trainData, MatType &testData, arma::rowvec &trainResponses, arma::rowvec &testResponses, data::DatasetInfo &info)
 
double RMSE (const arma::Row< double > &predictions, const arma::Row< double > &trueResponses)
 

Detailed Description

Author
Marcus Edel

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.

Function Documentation

◆ LogisticRegressionTestData()

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 
)
inline

Create the data for the a logistic regression test.

Parameters
dataMatrix object to store the data into.
testDataMatrix object to store the test data into.
shuffledDataMatrix object to store the shuffled data into.
responsesMatrix object to store the overall responses into.
testResponsesMatrix object to store the test responses into.
shuffledResponsesMatrix object to store the shuffled responses into.