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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

How to setup behavior cloning

Discussion in 'ML-Agents' started by Procuste, Aug 7, 2020.

  1. Procuste

    Procuste

    Joined:
    Feb 10, 2020
    Posts:
    12
    Hello,
    I have been reading the doc about behavioral cloning and tried so set it up on a small toy example.
    However, after adding the behavior_cloning section in my .YAML config file, Unity returns the error :

    Code (CSharp):
    1. mlagents.trainers.exception.TrainerConfigError: The option behavior_cloning was specified in your YAML file for TrainerSettings, but is invalid.
    As you can see in the config file that I converted to .txt to upload it in the post, I simply added a behavior_cloning section in the config file with the different parameters according to what I want.
    What I am doing wrong please ?
    Thank you for your attention.
     

    Attached Files:

    • SN15.txt
      File size:
      689 bytes
      Views:
      326
  2. mbaske

    mbaske

    Joined:
    Dec 31, 2017
    Posts:
    473
    It's just a typo - write behavioral_cloning, not behavior_cloning
     
    Mistermind likes this.
  3. Procuste

    Procuste

    Joined:
    Feb 10, 2020
    Posts:
    12
    Indeed! Thank you.
     
  4. Praxition

    Praxition

    Joined:
    Aug 29, 2020
    Posts:
    1
    bro you just saved me! ive been trying to figure this out for an hour :p