<p>In <a href="https://github.com/mlpack/mlpack/pull/650#discussion_r64749271">src/mlpack/methods/preprocess/preprocess_split_main.cpp</a>:</p>
<pre style='color:#555'>> + const string outputTestLabel = CLI::GetParam<string>("output_test_label");
> +
> + // Ratio
> + const double testRatio = CLI::GetParam<double>("test_ratio");
> +
> + // container for input data and labels
> + arma::mat data;
> + arma::Mat<size_t> labels;
> +
> + // Load Data and Labels
> + data::Load(inputFile, data, true);
> + data::Load(inputLabel, labels, true);
> + arma::Row<size_t> labels_row = labels.row(0); // extract first row
> +
> + // Split Data
> + const auto value = data::TrainTestSplit(data, labels_row, testRatio);
</pre>
<p>Does make_tuple call the copy constructor? If that's the case we should avoid this interface in favor of the pass by reference interface.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/mlpack/mlpack/pull/650/files/a35c39061245b0ccb757f65dfe6626b8a3c04d9c#r64749271">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFGFos6pvzTtYs4yVJO50OJRBtdEqks5qFaaGgaJpZM4IneDD.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/mlpack/mlpack/pull/650/files/a35c39061245b0ccb757f65dfe6626b8a3c04d9c#r64749271"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>