Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Need help with unity DQN reinforcement learning !!!

Discussion in 'ML-Agents' started by wechat_os_Qy0_dCEXoBJFSkWobaAN_LgL0, Sep 27, 2021.

  1. wechat_os_Qy0_dCEXoBJFSkWobaAN_LgL0

    wechat_os_Qy0_dCEXoBJFSkWobaAN_LgL0

    Joined:
    Sep 27, 2021
    Posts:
    1
    I'm learning to use DQN algorithm, which is the banana navigation code in the previous version of mlagents.
    This is the code that uses jupyter notebook, and I have set up the environment, but I stopped and reported an error after only training twice during the operation. How to correct this mistake, please, can you point out where this mistake is? Thank you very much.
    upload_2021-9-27_9-7-54.png
     

    Attached Files:

  2. gft-ai

    gft-ai

    Joined:
    Jan 12, 2021
    Posts:
    44
    It would help if you looked at the error message more carefully.

    it says in line 322 in environment.py, vector_action.keys() is an integer instead of it being a dictionary as you expect it to be.

    So you might want to investigate why that might be.

    Good luck!