allenai / deep_qa

A deep NLP library, based on Keras / tf, focused on question answering (but useful for other NLP too)
Apache License 2.0
404 stars 133 forks source link

Get random seed into the parameter file #333

Closed matt-gardner closed 7 years ago

matt-gardner commented 7 years ago

The plan for actually implementing model ensembling (#306) is to write a class that takes several model parameter files, loads them all, calls score_dataset on all of them, and averages the result. In order for this to work well, we really should have the random seed as part of the parameter file.

The only real trouble here is that the random seeds have to be set before keras is imported, so this has to be implemented carefully.