84f1342d0592b04be61d012a4d5a8b879d3bd124,paysage/fit.py,DrivenSequentialMC,update_beta,#DrivenSequentialMC#,99
Before Change
self.beta *= self.beta_momentum
self.beta += self.beta_loc
self.beta += self.beta_scale * numpy.random.randn(len(self.beta),1)
def update_state(self, steps):
if not self.has_state:
raise AttributeError(
After Change
self.beta_shape = (len(self.state), 1)
self.beta_loc = (1-self.beta_momentum) * be.ones(self.beta_shape)
self.beta_scale *= math.sqrt(1-self.beta_momentum**2)
self.beta = be.ones(self.beta_shape)
self.beta *= self.beta_momentum
self.beta += self.beta_loc
self.beta += self.beta_scale * be.randn(self.beta_shape)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: drckf/paysage
Commit Name: 84f1342d0592b04be61d012a4d5a8b879d3bd124
Time: 2017-02-13
Author: charlesfisher@Charless-MacBook-Pro.local
File Name: paysage/fit.py
Class Name: DrivenSequentialMC
Method Name: update_beta
Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_update_add
Project Name: streamlit/streamlit
Commit Name: 88f314bbaa2cbb7a4f2fdc624da8d06a8e1aa65f
Time: 2018-10-02
Author: thiagot@gmail.com
File Name: examples/vega_lite_example.py
Class Name:
Method Name:
Project Name: keras-team/keras
Commit Name: 8e23a3ec47a2ccbf6cdd222a80886c6b9f17264f
Time: 2019-03-21
Author: francois.chollet@gmail.com
File Name: tests/keras/backend/backend_test.py
Class Name: TestBackend
Method Name: test_update_sub