### Gym: MountainCar using Genetic Algorithm

Solving OpenAI Gym MountainCar using Genetic Algorithm

Hey fellas, This time I have partially solved the Gym's MountainCar v0 problem using the Deep Genetic Algorithm. Why partially?

The model trained within 48 seconds which is astonishing for me as well. It seems like DGA rocks. Although my neural network wasn't that deep to be specific. I just used 8 nodes in the first hidden layer and 4 in the next hidden layer.

The observation space:

NumObservationMinMax0position-1.20.61velocity-0.070.07

The action space:

NumAction0push left1no push2push right

Here's the GIF of the Mountain Car:

In my previous post, I solved the LunarLander environment using a genetic algorithm. However, in the LunarLander environment, we have high complexity, space, and states. The result of our algorithm?

The Green colored plot is the median of our population. The Blue colored plot is the maximum of each generation.

The tweaks in GA relies on the basics.

Crossover: For a crossover, I used Uniform …

Hey fellas, This time I have partially solved the Gym's MountainCar v0 problem using the Deep Genetic Algorithm. Why partially?

The model trained within 48 seconds which is astonishing for me as well. It seems like DGA rocks. Although my neural network wasn't that deep to be specific. I just used 8 nodes in the first hidden layer and 4 in the next hidden layer.

The observation space:

NumObservationMinMax0position-1.20.61velocity-0.070.07

The action space:

NumAction0push left1no push2push right

Here's the GIF of the Mountain Car:

In my previous post, I solved the LunarLander environment using a genetic algorithm. However, in the LunarLander environment, we have high complexity, space, and states. The result of our algorithm?

The Green colored plot is the median of our population. The Blue colored plot is the maximum of each generation.

The tweaks in GA relies on the basics.

Crossover: For a crossover, I used Uniform …