Search Unity

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

Question Unusable steps due to http get response waiting

Discussion in 'ML-Agents' started by antreas20197, Jan 21, 2023.

  1. antreas20197

    antreas20197

    Joined:
    Jun 9, 2021
    Posts:
    15
    Hello.

    During training I have to make a HTTP GET request to fetch some data. Then based on the data I give reward to the agent.

    During waiting seconds for the data to be received, mlagents steps counting without doing something.

    My question is if that will affect something and if freezing Unity until data received would be a better approach.

    Thanks.
     
  2. smallg2023

    smallg2023

    Joined:
    Sep 2, 2018
    Posts:
    130
    if you're worried about the agent side you can swap to manual decisions and actions rather than the decision requester component so that you can only act when it has valid data via your own logic