#Question about mlagents .addObservation()

1 messages · Page 1 of 1 (latest)

whole idol
#

I'm playing around with mlagents for the first time, and had a question about the way observations work. The screenshot is how I implemented adding observations, and I'm curious if its the better, worse, or the same as just adding an observation for each individual value.

Theres no errors or anything, I just want to know if I should put all the related data in an array before feeding it in like I did, or if it doesnt matter. The program does this for up to 30 different objects, so a total of 90 observations
any help or advice is appreciated (specifically about how observations work with ml agents)

rustic lance
#

if you look at the AddObservation method you'll see it's just calling the same method for each type so they're all doing the same thing in the end

dry matrix
#

@whole idol You can add arrays, or a number of other types, using AddObservation(). You can see the overloads for AddObservation() here: https://github.com/Unity-Technologies/ml-agents/blob/f442194297f878a84eb60c04eccf7662cbc9ff60/com.unity.ml-agents/Runtime/Sensors/VectorSensor.cs#L137

GitHub

The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement ...

whole idol