
Go to the source code of this file.
Namespaces | |
| mlpack | |
strip_type.hpp | |
| mlpack::data | |
Functions to load and save matrices and models. | |
Functions | |
template < typename T , typename U > | |
| void | 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 | 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 > > | 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 > > | Split (const arma::Mat< T > &input, const double testRatio) |
| Given an input dataset, split into a training set and test set. More... | |
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.