<p>This looks good to me, but with the simpler API that does not accept cubes, do you think it is worth having a class for this, or would it be more reasonable to just have a function <code>TrainTestSplit()</code> which takes the data and the percentage for the test set?  I think that since <code>TrainTestSplit</code> only holds one member it would be easier to just make it a standalone function.  You could also add the overload that returns the <code>std::tuple&lt;...&gt;</code> too.</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/523#issuecomment-209087043">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFDPxDVQUJ3ssu-dTqoAt5WrjG34yks5p2_6DgaJpZM4HhWF3.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/523#issuecomment-209087043"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>