<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r66709928">src/mlpack/methods/ne/tasks.hpp</a>:</p>
<pre style='color:#555'>> +         std::vector<std::vector<double>> inputs;
> +         std::vector<double> input1 = {0, 0, 1};
> +         std::vector<double> input2 = {0, 1, 1};
> +         std::vector<double> input3 = {1, 0, 1};
> +         std::vector<double> input4 = {1, 1, 1};
> +         inputs.push_back(input1);
> +         inputs.push_back(input2);
> +         inputs.push_back(input3);
> +         inputs.push_back(input4);
> +
> +         std::vector<double> outputs;
> +         outputs.push_back(1);
> +         outputs.push_back(0);
> +         outputs.push_back(1);
> +         outputs.push_back(0);
> +
</pre>
<p>I guess, using an arma::mat object to store the input is a better representation. This way, we can use all kinds of already implemented methods to preprocess the data.</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, <a href="https://github.com/mlpack/mlpack/pull/686/files/65f093daf32f6cb353cd6b9304bab88a5e096fdc#r66709928">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFHcnKNDNZllcbzgiVYmv519WKMZlks5qKwA8gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFIkEaMf1lB-sJXF7N8mRDnLhBDELks5qKwA8gaJpZM4IwJa6.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/686/files/65f093daf32f6cb353cd6b9304bab88a5e096fdc#r66709928"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>