<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'>> + ssize_t num_trial = 20;
> + ssize_t num_step = 200;
> + }
> +
> + // Parametric constructor.
> + TaskCartPole(double t_mc, double t_mp, double t_g, double t_l, double t_F,
> + double t_tau, double t_track_limit, double t_theta_limit,
> + ssize_t t_num_trial, ssize_t t_num_step):
> + mc(t_mc), mp(t_mp), g(t_g), l(t_l), F(t_F),
> + tau(t_tau), track_limit(t_track_limit), theta_limit(t_theta_limit),
> + num_trial(t_num_trial), num_step(t_num_step) {}
> +
> + // Update status.
> + void Action(double action, double& x, double& x_dot, double& theta, double& theta_dot) {
> + double force = action * F; // action is -1 or 1. TODO: or continuous???
> + 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;">—<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>