This program assigning Deep Q-learning for the CartPole-V1
This code uses the CartPole-V1 environment from the gymnasium library. CartPole-V1 is the latest version of the Cart Pole environment and you can read about its version history in the https://www.gymlibrary.dev/environments/classic_control/cart_pole/
-
Download a Python file ("Cart Pole.py")
-
Installing packages if they are not currently installed on your system (it is recommended to use pip install)
-
run the script
-
you can reach the weights of the Q-Network in the HDF5 format in dir/Cart_Pole_final_result.h5