.TH "/var/www/mlpack.ratml.org/mlpack.org/_src/mlpack-3.3.2/src/mlpack/core/data/split_data.hpp" 3 "Mon Aug 31 2020" "Version 3.3.2" "mlpack" \" -*- nroff -*-
.ad l
.nh
.SH NAME
/var/www/mlpack.ratml.org/mlpack.org/_src/mlpack-3.3.2/src/mlpack/core/data/split_data.hpp
.SH SYNOPSIS
.br
.PP
.SS "Namespaces"

.in +1c
.ti -1c
.RI " \fBmlpack\fP"
.br
.RI "Linear algebra utility functions, generally performed on matrices or vectors\&. "
.ti -1c
.RI " \fBmlpack::data\fP"
.br
.RI "Functions to load and save matrices and models\&. "
.in -1c
.SS "Functions"

.in +1c
.ti -1c
.RI "template<typename T , typename U > void \fBSplit\fP (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, const bool shuffleData=true)"
.br
.RI "Given an input dataset and labels, split into a training set and test set\&. "
.ti -1c
.RI "template<typename T > void \fBSplit\fP (const arma::Mat< T > &input, arma::Mat< T > &trainData, arma::Mat< T > &testData, const double testRatio, const bool shuffleData=true)"
.br
.RI "Given an input dataset, split into a training set and test set\&. "
.ti -1c
.RI "template<typename T , typename U > std::tuple< arma::Mat< T >, arma::Mat< T >, arma::Row< U >, arma::Row< U > > \fBSplit\fP (const arma::Mat< T > &input, const arma::Row< U > &inputLabel, const double testRatio, const bool shuffleData=true)"
.br
.RI "Given an input dataset and labels, split into a training set and test set\&. "
.ti -1c
.RI "template<typename T > std::tuple< arma::Mat< T >, arma::Mat< T > > \fBSplit\fP (const arma::Mat< T > &input, const double testRatio, const bool shuffleData=true)"
.br
.RI "Given an input dataset, split into a training set and test set\&. "
.in -1c
.SH "Detailed Description"
.PP 

.PP
\fBAuthor:\fP
.RS 4
Tham Ngap Wei, Keon Kim
.RE
.PP
Defines \fBSplit()\fP, a utility function to split a dataset into a training set and a test set\&.
.PP
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\&. 
.PP
Definition in file \fBsplit_data\&.hpp\fP\&.
.SH "Author"
.PP 
Generated automatically by Doxygen for mlpack from the source code\&.
