Skip to content

Loader is deprecated #2127

@MrGitGo

Description

@MrGitGo

I am running this command: mlagents-learn config/trainer_config.yaml --run-id=Lernen_1_0 --train --load and I get this:

lib\site-packages\mlagents\trainers\learn.py:141: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load for full details.
  trainer_config = yaml.load(data_file)

I looked on the page and there is written that I should run this: PYTHONWARNINGS=ignore::yaml.YAMLLoadWarning

or

yaml.load(input, Loader=yaml.FullLoader)

which one should I run and will this stop the warning to appear? Or do I have to run other commands?

Metadata

Metadata

Assignees

Labels

requestIssue contains a feature request.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions