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

Modify optimizer in new API to support more usecases #11168

Merged
merged 2 commits into from
Jun 4, 2018

Conversation

sidgoyal78
Copy link
Contributor

@sidgoyal78 sidgoyal78 commented Jun 4, 2018

Fix #11157

This PR implements the approach suggested by @jacquesqiao

This modifies the trainer and 2 examples:

  • fit a line
  • label semantic roels

In addition to @seiriosPlus 's observation, I observed similar issue while implementing the Label semantic roles example. This PR includes the earlier example from label semantic roles, and it is working with the new fix.

Copy link
Contributor

@daming-lu daming-lu left a comment

Choose a reason for hiding this comment

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

💯 🥇

@sidgoyal78 sidgoyal78 changed the title Modify optimizer in new API to support more usecase Modify optimizer in new API to support more usecases Jun 4, 2018
Copy link
Contributor

@nickyfantasy nickyfantasy left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the init parameter "optimizer" of Trainer() should be a function
4 participants