Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Is there a way to export observation data?

Discussion in 'ML-Agents' started by lcy03170818, Oct 14, 2020.

  1. lcy03170818

    lcy03170818

    Joined:
    Oct 6, 2020
    Posts:
    2
    Hi, I’m wondering is there a way to export the vector observation data ( to a csv file or print out) during training/inference?
    Any suggestions are greatly appreciated!
     
  2. vincentpierre

    vincentpierre

    Joined:
    May 5, 2017
    Posts:
    160
    Hi,
    I would put a UnityEngine.Debug.Log() statement in my CollectObservations method. The Observations should be printed in the Unity console. Doing this in Python might be a little more complex since you would probably have to modify the UnityEnvironment code (I would put some print statements inside the UnityEnvironment.get_steps() method). This although last method would only work at training time.
     
  3. lcy03170818

    lcy03170818

    Joined:
    Oct 6, 2020
    Posts:
    2
    That works, thanks so much.
    And I also found an Add-on named Simple_export in asset store which can export those data into a file.