Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor trainer API #9

Closed
wants to merge 2 commits into from
Closed

Conversation

vreis
Copy link
Contributor

@vreis vreis commented Sep 23, 2019

Summary:
Move things around a bit more to get closer to our goal. Introduce a
ClassyTrainer.train method, which only takes a task in. The state is hidden
from the public API that way. Other parameters are passed in the constructor
instead.

Differential Revision: D17515697

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 23, 2019
Summary:
This will make more sense after you review D17515697: I'm hiding ClassyState
from the public API, but in some cases we access state.optimizer, state.model
etc. This diff adds these members to ClassyTask so it can replace the state.
Eventually I want to move these from the state to the task, but for now we
need them in both.

Differential Revision: D17515732

fbshipit-source-id: 4fd56ddd32ed52552bbd151111e99eebf0a039a0
Summary:
Pull Request resolved: facebookresearch/ClassyVision#9

Move things around a bit more to get closer to our goal. Introduce a
ClassyTrainer.train method, which only takes a task in. The state is hidden
from the public API that way. Other parameters are passed in the constructor
instead.

Reviewed By: mannatsingh

Differential Revision: D17515697

fbshipit-source-id: 950847157046998622e97c44628275fbf14f66b5
facebook-github-bot pushed a commit that referenced this pull request Sep 24, 2019
Summary:
Pull Request resolved: #9

Move things around a bit more to get closer to our goal. Introduce a
ClassyTrainer.train method, which only takes a task in. The state is hidden
from the public API that way. Other parameters are passed in the constructor
instead.

Reviewed By: mannatsingh

Differential Revision: D17515697

fbshipit-source-id: 1d4163f1c49a0a29c5bbf8fc01eda88e810dbed3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants