<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'>&gt; +  const string inputLabel = CLI::GetParam&lt;string&gt;(&quot;input_label&quot;);
&gt; +  const string outputTrainLabel = CLI::GetParam&lt;string&gt;(&quot;output_train_label&quot;);
&gt; +  const string outputTestLabel = CLI::GetParam&lt;string&gt;(&quot;output_test_label&quot;);
&gt; +
&gt; +  // Ratio
&gt; +  const double testRatio = CLI::GetParam&lt;double&gt;(&quot;test_ratio&quot;);
&gt; +
&gt; +  // container for input data and labels
&gt; +  arma::mat data;
&gt; +  arma::Mat&lt;size_t&gt; labels;
&gt; +
&gt; +  // Load Data and Labels
&gt; +  data::Load(inputFile, data, true);
&gt; +  data::Load(inputLabel, labels, true);
&gt; +  arma::Row&lt;size_t&gt; labels_row = labels.row(0); // extract first row
&gt; +
</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;">&mdash;<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>