ml-agents icon indicating copy to clipboard operation
ml-agents copied to clipboard

How can I get `vector_observations`?

Open Lee-JaeWon opened this issue 5 years ago • 2 comments

I am having difficulty learning by connecting the external API and the unity environment I have created.

I was looking DQN code of previous ml-agent version but i want to use the following code using current version.

# reset the unity environment at the beginning of each episode
    env_info = env.reset(train_mode=True)[brain_name]     

    # get initial state of the unity environment 
    state = env_info.vector_observations[0]

How should I use this in the current ml-agents version? And what exactly does this mean? I mean, why is that becoming a 'state' of Environment?

I'm sorry to bother you.

Lee-JaeWon avatar Nov 05 '21 06:11 Lee-JaeWon

This support question is likely better suited for the official ML-Agents forums found here: https://forum.unity.com/forums/ml-agents.453/

sini avatar Nov 08 '21 18:11 sini

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

github-actions[bot] avatar Dec 08 '21 20:12 github-actions[bot]