<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r70260333">src/mlpack/methods/ne/tasks.hpp</a>:</p>
<pre style='color:#555'>> + double theta_dot = mlpack::math::Random(-1.5, 1.5);
> +
> + for (ssize_t step=0; step<num_step; ++step) {
> + // Convert input into range [0, 1]
> + std::vector<double> inputs = {(x + 2.4) / 4.8,
> + (x_dot + 0.75) / 1.5, // ??
> + (theta + theta_limit) / 0.41,
> + (theta_dot + 1.0) / 2.0,
> + 1}; // TODO: use arma::mat for input.
> + genome.Activate(inputs);
> + std::vector<double> output;
> + genome.Output(output);
> +
> + double action = output[0];
> + if (output[0] < 0.5) {
> + action = -1;
</pre>
<p>Ah, yeah, right, my fault.</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/1fe7d730fd88cbaf7019e8936face4c6ddcb0577..ff45785b8669f82beb38ef5392f48bcdf5c83f6a#r70260333">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe/AJ4bFL5A-MftSeoyMbnEgQFPS5Zhqd58ks5qUkn6gaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFGrPj5uc281nIwyhZIzJpoXtqpq4ks5qUkn6gaJpZM4IwJa6.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/1fe7d730fd88cbaf7019e8936face4c6ddcb0577..ff45785b8669f82beb38ef5392f48bcdf5c83f6a#r70260333"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>