Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question How to get done or terminal information in python code?

Discussion in 'ML-Agents' started by mks0813, May 25, 2020.

  1. mks0813

    mks0813

    Joined:
    Oct 3, 2017
    Posts:
    4
    Hello. I have a question about python code for ML-Agents.
    First, I want to ask that there is a plan for releasing python example code (getting_started.ipynb in previous versions).
    There is no python example codes in ML-Agents 1.0 release 1 and release 2, so I am trying to use the getting_started.ipynb in version 0.15.1.
    I fixed some parts of the codes, so I could run 1 step.
    However, I couldn't find where I can get done or terminal information.

    In the following image, I checked that the step_result consists of DecisionSteps and TerminalSteps. However, there was no done or terminal information in step_result. So, I want to ask that how can I get done or terminal information of the agent in the python script.
    upload_2020-5-25_21-13-34.png

    Thank you.
     
  2. TreyK-47

    TreyK-47

    Unity Technologies

    Joined:
    Oct 22, 2019
    Posts:
    1,835
    Hey there! I'll flag this for the team to take a look, and provide some insight.
     
  3. celion_unity

    celion_unity

    Joined:
    Jun 12, 2019
    Posts:
    289