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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Is it safe to have two normalization ranges for observations?

Discussion in 'ML-Agents' started by Ordpers, Dec 24, 2022.

  1. Ordpers


    Aug 10, 2019
    Can I have some observations to be within the range (0f, 1f) and others to be within the range (-1f, 1f)? Will it make training worse?
  2. GamerLordMat


    Oct 10, 2019
    depends. If you have positions and you scale them differently although length (e.g. one meter) should be the same, ML has to figure out the mapping. I would recommend scaling same things with the same factor. So transform.position/maxCoordinate.
    If you scale two independent things differently it should not matter.

    I personally use normalize=true bc it is the safest way
    hughperkins likes this.