<p>In <a href="https://github.com/mlpack/mlpack/pull/686#discussion_r71061084">src/mlpack/methods/ne/tasks.hpp</a>:</p>
<pre style='color:#555'>&gt; +    ssize_t num_trial = 20;
&gt; +    ssize_t num_step = 200;
&gt; +  }
&gt; +
&gt; +  // Parametric constructor.
&gt; +  TaskCartPole(double t_mc, double t_mp, double t_g, double t_l, double t_F, 
&gt; +               double t_tau, double t_track_limit, double t_theta_limit,
&gt; +               ssize_t t_num_trial, ssize_t t_num_step):
&gt; +               mc(t_mc), mp(t_mp), g(t_g), l(t_l), F(t_F),
&gt; +               tau(t_tau), track_limit(t_track_limit), theta_limit(t_theta_limit),
&gt; +               num_trial(t_num_trial), num_step(t_num_step) {}
&gt; +
&gt; +  // Update status.
&gt; +  void Action(double action, double&amp; x, double&amp; x_dot, double&amp; theta, double&amp; theta_dot) {
&gt; +    double force = action * F;  // action is -1 or 1. TODO: or continuous???
&gt; +    double cos_theta = cos(theta * M_PI / 180.0);
</pre>
<p>I reviewed the code. Yeah, you are right! this is a bug!</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, <a href="https://github.com/mlpack/mlpack/pull/686/files/ff45785b8669f82beb38ef5392f48bcdf5c83f6a#r71061084">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AJ4bFLJtkwlgZcJGxOxwxwRaQ-Pyu83gks5qWGSYgaJpZM4IwJa6">mute the thread</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AJ4bFFBFPwzwEpPls2N50DSi1wT2J7WPks5qWGSYgaJpZM4IwJa6.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/ff45785b8669f82beb38ef5392f48bcdf5c83f6a#r71061084"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>