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 AddObservation with a float value

Discussion in 'ML-Agents' started by ilaydanil, May 19, 2020.

  1. ilaydanil

    ilaydanil

    Joined:
    May 17, 2020
    Posts:
    20
    Hi,
    My agent needs to purchase something according to the money it has. How can I make Agent aware of the money value?
    In the github documentation, there is a function called AddObservation() but it only works with vectors and the money value I have is a float value what should I do?
     
  2. MrWetsnow

    MrWetsnow

    Joined:
    Jan 5, 2020
    Posts:
    60
    AddOberservation() also works with floats.