[mlpack-git] [mlpack/mlpack] Neural evolution algorithms implementation (CNE, NEAT, HyperNEAT) (#686)
Excalibur
notifications at github.com
Sat Jul 16 00:56:56 EDT 2016
> + 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);
I reviewed the code. Yeah, you are right! this is a bug!
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/mlpack/mlpack/pull/686/files/ff45785b8669f82beb38ef5392f48bcdf5c83f6a#r71061084
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.cc.gatech.edu/pipermail/mlpack-git/attachments/20160715/98ec7f97/attachment.html>
More information about the mlpack-git
mailing list