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.

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. garytrickett

    garytrickett

    Joined:
    Sep 2, 2018
    Posts:
    62
    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