Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Issues with learning.

Discussion in 'ML-Agents' started by LordBitcube, Sep 16, 2021.

  1. LordBitcube

    LordBitcube

    Joined:
    Sep 14, 2020
    Posts:
    4
    Hey everyone, im rather new to alot of this.

    I got it all up and running and have had a few things work so im not worried about that.

    I currently have a pretty basic setup, 4 walls, 3 food randomly placed, and the agent.

    I have OnCollisionStay2D for adding - 1 reward on walls and a OnTriggerEnter2D for adding 1 reward for food, very basic stuff.

    For senses i have a Ray Perception Sensor 2D and i feel like that might be the issue.

    Agents seem to be getting better but never seem to go after the food, it kind of looks like it avoids anything it sees.

    How do i test whats happening, is this correct, or have i missed something for the Sensor (Honestly i think thats the issue, i could not find anything decent to explain it all).
     

    Attached Files:

  2. brockyasar

    brockyasar

    Joined:
    Jul 19, 2019
    Posts:
    10


    I have encountered with the same issue. Disabling the Defualt mask fixed issue for me. After that you can see the ray casts at the scene window. I think it might be a bug.