mlpack  master
Namespaces | Functions
split_data.hpp File Reference
Include dependency graph for split_data.hpp:

Go to the source code of this file.

Namespaces

 mlpack
 Linear algebra utility functions, generally performed on matrices or vectors.
 
 mlpack::data
 Functions to load and save matrices and models.
 

Functions

template<typename T , typename U >
void mlpack::data::Split (const arma::Mat< T > &input, const arma::Row< U > &inputLabel, arma::Mat< T > &trainData, arma::Mat< T > &testData, arma::Row< U > &trainLabel, arma::Row< U > &testLabel, const double testRatio)
 Given an input dataset and labels, split into a training set and test set. More...
 
template<typename T >
void mlpack::data::Split (const arma::Mat< T > &input, arma::Mat< T > &trainData, arma::Mat< T > &testData, const double testRatio)
 Given an input dataset, split into a training set and test set. More...
 
template<typename T , typename U >
std::tuple< arma::Mat< T >, arma::Mat< T >, arma::Row< U >, arma::Row< U > > mlpack::data::Split (const arma::Mat< T > &input, const arma::Row< U > &inputLabel, const double testRatio)
 Given an input dataset and labels, split into a training set and test set. More...
 
template<typename T >
std::tuple< arma::Mat< T >, arma::Mat< T > > mlpack::data::Split (const arma::Mat< T > &input, const double testRatio)
 Given an input dataset, split into a training set and test set. More...
 

Detailed Description

Author
Tham Ngap Wei, Keon Kim

Defines Split(), a utility function to split a dataset into a training set and a test set.

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 split_data.hpp.