georgymh / decentralized-ml

Interoperable and decentralized machine learning.
Apache License 2.0
9 stars 5 forks source link

Uniform Initialization of Models from Seed #41

Closed kiddyboots216 closed 5 years ago

kiddyboots216 commented 5 years ago

By compiling layers of the Keras model with the seed argument set for the glorot_uniform initializer, we can ensure that models are initialized with the same weights. If we choose to have a bias initializer, then we would similarly set the seed for the bias initializer, but the bias is initialized to all zeros by default.

Although this capability is inherent in the Unix Service, and this PR just adds a test to ensure it stays that way, we need to make sure in Explora that we either urge developers to add the seed when they create their Model, or do it for them.