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

How to setting learning rate in the model params?? #842

Open
gaoliming123 opened this issue Dec 30, 2020 · 0 comments
Open

How to setting learning rate in the model params?? #842

gaoliming123 opened this issue Dec 30, 2020 · 0 comments
Labels

Comments

@gaoliming123
Copy link

such as model build, where we can set the learning rate

model = mz.models.MatchPyramid()
model.params.update(preprocessor.context)
model.params['task'] = ranking_task
model.params['embedding_output_dim'] = 128
model.params['embedding_input_dim'] = preprocessor.context['embedding_input_dim']
model.params['embedding_trainable'] = True
model.params['num_blocks'] = 2
model.params['kernel_count'] = [8, 16]
model.params['kernel_size'] = [[5, 5], [3, 3]]
model.params['dpool_size'] = [3, 3]
model.params['optimizer'] = 'adam'
model.params['dropout_rate'] = 0.3
model.build()
model.compile()

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

No branches or pull requests

1 participant