Skip to content

Conversation

@vincentpierre
Copy link
Contributor

Proposed change(s)

Moved components to the tf folder and moved the TrainerFactory to the trainer folder

Useful links (Github issues, JIRA tickets, ML-Agents forum threads etc.)

Types of change(s)

  • Bug fix
  • New feature
  • Code refactor
  • Breaking change
  • Documentation update
  • Other (please describe)

Checklist

  • Added tests that prove my fix is effective or that my feature works
  • Updated the changelog (if applicable)
  • Updated the documentation (if applicable)
  • Updated the migration guide (if applicable)

Other comments

@vincentpierre vincentpierre self-assigned this Oct 1, 2020
@@ -1 +1,2 @@
from mlagents.trainers.trainer.trainer import Trainer # noqa
from mlagents.trainers.trainer.trainer_factory import TrainerFactory # noqa
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather remove this and keep the import explicit:

from mlagents.trainers.trainer.trainer_factory import TrainerFactory

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, why not just keep trainer_factory.py in the trainers directory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am trying to compartmentalize. The TrainerFactory creates a Trainer, so I think it makes sense to have it in the trainers.trainer folder.

The only reason I put the import inside the init is because mlagents.trainers.trainer.trainer_factory is 3 times trainer :)

@chriselion
Copy link
Contributor

Please update the migration guide, since anyone who's calling these in their code will need to update it.

@vincentpierre vincentpierre merged commit b7d2b80 into master Oct 5, 2020
@delete-merged-branch delete-merged-branch bot deleted the develop-moving-files branch October 5, 2020 18:35
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants