Learning to control an inverted pendulum using neural networks | Synapse