Dzmitry Bahdanau
Dzmitry Bahdanau
Hi Luke, it seems to me that what you that the following should work for you: class MultiBrick(Initializable): ``` def _push_initialization_config(self): super(self, MultiBrick)._push_initialization_config(self) self.lin1.weights_init = Constant(1) self.lin1._push_initialization_config() ``` Does this...
@koningrobot , definitely, but in this case you just need to push `MultiBrick` induced initialization first and override it: ``` brick = MultiBrick(weights_init=Constant(0)) brick.push_initialization_config() brick.lin1.weights_init = Constant(1) ```
Actually, it was considered at an early stage of Blocks development, where it was only me and Bart sending each other long emails. And I remember that Bart convinced that...
Oh, I am afraid keyword would be an overkill. We should probably just decide which of two is better. Trying to play devil's advocate: what if I have a brick...
> Either way, I think it is clearly an "explicit is better than implicit". OK, I see your point that user receives a _very_ unpleasant surprise when `initialize` overrides his...
@sotelo, this is a very important ticket!
Sure! Will work on it today.
Sorry for the delay, I am struggling with the cluster and my course project. I will definitely review it tomorrow.
I have three suggestions: - use the roles as the keys in `initialization_schemes` - initialize parameters using the scheme given for their most specific role - check that the given...
1. I think you gave up the idea of a role-indexed dictionary too early. Check https://docs.python.org/2/reference/datamodel.html#object.__hash__ , you should be able to overload this method. 2. I thought we would...