- Home /
Question by
IronGrimoire · Dec 13, 2021 at 12:50 AM ·
aicommand-line
Trouble with the mlagents-learn command
I am getting an error when I try running the mlagents-learn command.
I have installed ml-agents 2.0.1 in unity using the package manager.
I have installed the python (package?) mlagents and mlagents-envs 0.27
I have been following along with the "Making a New Learning Environment" documentation tutorial at - https://github.com/Unity-Technologi..._docs/docs/Learning-Environment-Create-New.md
I get close to the end - the step where I enter the command:
mlagents-learn path/rollerball_config.yaml --run-id=RollerBall
throws the following error:
mlagents.trainers.exception.TrainerConfigError:
The option behaviors was specified in your YAML file, but is invalid.
Which I find a little odd due to the "" symbols, like it can't say exactly which option it doesn't like. I am using the YAML file given by the tutorial:
behaviors:
Roll:
trainer_type: ppo
hyperparameters:
batch_size: 10
buffer_size: 100
learning_rate: 3.0e-4
beta: 5.0e-4
epsilon: 0.2
lambd: 0.99
num_epoch: 3
learning_rate_schedule: linear
network_settings:
normalize: false
hidden_units: 128
num_layers: 2
reward_signals:
extrinsic:
gamma: 0.99
strength: 1.0
max_steps: 500000
time_horizon: 64
summary_freq: 10000
Can anyone point me in the right direction or have any ideas on what I can try next?
Comment