Closed faneshion closed 5 years ago
params
keys should only be basic data types (string, int), not keras optimizer instances. However, I know how to make this work (by calling keras seriailization helpers). Do you think it's really needed?
params
keys should only be basic data types (string, int), not keras optimizer instances. However, I know how to make this work (by calling keras seriailization helpers). Do you think it's really needed?
Hi, I found this when I tried to use specific learning rate to train my model. Or could you give a better way to specify a customized learning rate with the optimizer while using matchzoo?
@presimple If you want a quick solution:
learning_rate
in model.params
and modify model.build
so it takes that parameter into accountlearning_rate
in model.params
and add additional logic to read that parameter and compile a loaded model.A better solution, but takes longer: Matchzoo handles optimizer serialization differently.
Ultimately it's keras's fault. Maybe they will fix that eventually.
@presimple found a much better workaround in #735
I hope things are working well for you now. I’ll go ahead and close this issue, but I’m happy to continue further discussion whenever needed.
Bug exists when saving the model with the following setting:
The callback is :