<p>In <a href="https://github.com/mlpack/mlpack/pull/650#discussion_r64776600">src/mlpack/methods/preprocess/preprocess_split_main.cpp</a>:</p>
<pre style='color:#555'>> + const string inputLabel = CLI::GetParam<string>("input_label");
> + const string outputTrainLabel = CLI::GetParam<string>("output_train_label");
> + 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
> +
</pre>
<p>I only thought of integer labels by looking at the test data. How should I allow decimal labels?</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#r64776600">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFI0gYaNBI90kILY_FF-lv0h9oic3ks5qFcmEgaJpZM4IneDD.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#r64776600"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>