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

Training utilities and examples that are independent of trainer #2252

Open
bkvogel opened this issue Feb 9, 2017 · 3 comments
Open

Training utilities and examples that are independent of trainer #2252

bkvogel opened this issue Feb 9, 2017 · 3 comments
Assignees
Labels
cat:feature Implementation that introduces new interfaces. pr-ongoing Pull-request is being worked on to address the labeled ticket. roadmap Included in future roadmap.

Comments

@bkvogel
Copy link
Contributor

bkvogel commented Feb 9, 2017

The trainer feature offers useful abstractions that can often simplify the process of implementing a model in Chainer. However, in some cases users might find it more convenient to write their own training loop manually instead of using trainer.

For some models such as certain types of RNNs, it might sometimes be more convenient to write a custom training loop. Trainer comes with a learning curve and so new users could start being productive with Chainer quicker if they can implement models without trainer, at least in the beginning. Related to this, new users might also be able to more quickly understand the Chainer included examples if we could also provide an implementation of many of the examples without using trainer (of course we would also want to still include the trainer versions).

That is, trainer should be considered as an option that can often be useful, but that is not required to implement a training/testing loop in Chainer. Unfortunately, there is currently one drawback to not using trainer: without it, the user cannot access the many trainer extensions such as ProgressBar, LogReport, etc.. To resolve this inconvenience, I propose to write some training utilities that provide similar functionality to the trainer extensions but that can also be easily used in a custom training loop. I also propose to write additional examples (based on some of the current examples) that use a custom training loop with these utilities. I am currently experimenting with such utilities and would like to submit a corresponding WIP PR soon, especially if others think such utilities could be useful.

I expect that this feature should not break backward compatibility, but I might like to use some of the other v2 features in the utilities and examples and so am thinking to label this as a v2 feature.

@stale
Copy link

stale bot commented Oct 23, 2017

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Not updated for a longer period of time. label Oct 23, 2017
@beam2d beam2d added cat:feature Implementation that introduces new interfaces. and removed v2 labels Nov 13, 2017
@stale stale bot removed the stale Not updated for a longer period of time. label Nov 13, 2017
@Crissman
Copy link
Member

Crissman commented Dec 4, 2017

Part of future roadmap.

@stale
Copy link

stale bot commented Mar 4, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Not updated for a longer period of time. label Mar 4, 2018
@beam2d beam2d added the roadmap Included in future roadmap. label Mar 19, 2018
@stale stale bot removed the stale Not updated for a longer period of time. label Mar 19, 2018
@kmaehashi kmaehashi added the pr-ongoing Pull-request is being worked on to address the labeled ticket. label Sep 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:feature Implementation that introduces new interfaces. pr-ongoing Pull-request is being worked on to address the labeled ticket. roadmap Included in future roadmap.
Projects
None yet
Development

No branches or pull requests

4 participants