neat-python icon indicating copy to clipboard operation
neat-python copied to clipboard

Further experiments

Open amarzullo24 opened this issue 7 years ago • 7 comments

Dear all, I am starting to use this framework and I would like to see other experiments in addition to xor. Before implementing my own experiments I would like to know if there is already any available code.

Thanks for the attention

amarzullo24 avatar Dec 06 '16 14:12 amarzullo24

Did you look at different implementation of XOR and Single pole examples ?

evolvingfridge avatar Dec 06 '16 19:12 evolvingfridge

Pole balancing would be nice, but I cannot find it in the experiments. I am trying to implement it starting from the java code in "anji" (anji.sourceforge.net)

amarzullo24 avatar Dec 06 '16 21:12 amarzullo24

More example are in separate repo: https://github.com/CodeReclaimers/neat-python-examples

evolvingfridge avatar Dec 06 '16 21:12 evolvingfridge

Take a look here: https://github.com/CodeReclaimers/neat-python-examples/tree/master/src/single_pole_balancing

At one point I thought it was a good idea to break out the examples into a separate project (neat-python-examples), but it's a hassle for testing/development so I will eventually put them together again. Sorry about the confusion; if any of the examples don't work correctly I'll see if I can update them to match the current implementation.

CodeReclaimers avatar Dec 06 '16 21:12 CodeReclaimers

It seems work fine. Thank you for the reply

amarzullo24 avatar Dec 07 '16 09:12 amarzullo24

Dear all, I am trying to implement the double pole balancing problem starting from the code by alexei_vasilkov.

The two involved files are the cart physics and the evolve code.

Does it make any sense for you?

Ps: the library version is a bit old, sorry for this.

amarzullo24 avatar Mar 08 '17 12:03 amarzullo24

That looks good to me! If you get it working and post the full code somewhere, let me know and I can include a link to it in the docs if you want. You could also probably easily use your solution without many changes for the OpenAI Gym double-pole problem.

No worries on the age of the library--once you get it working it shouldn't be too hard to make updates for it to work with the current version.

CodeReclaimers avatar Mar 08 '17 16:03 CodeReclaimers