Search Unity

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.