aaa6b9c9c0a803153ae26a3b28fe2c7fbf3e75fe,paysage/metrics.py,EnergyGap,update,#EnergyGap#,239
Before Change
None
self.norm += 1
self.energy_gap += be.mean(update_args.model
.joint_energy(update_args.minibatch))
self.energy_gap -= be.mean(update_args.model
.joint_energy(update_args.random_samples))
def value(self):
After Change
energy_data = update_args.model.joint_energy(update_args.minibatch)
energy_random = update_args.model.joint_energy(update_args.random_samples)
self.calc.update(energy_data)
self.calc.update(-energy_random)
def value(self):
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances
Project Name: drckf/paysage
Commit Name: aaa6b9c9c0a803153ae26a3b28fe2c7fbf3e75fe
Time: 2017-05-19
Author: jrwalsh1@gmail.com
File Name: paysage/metrics.py
Class Name: EnergyGap
Method Name: update
Project Name: drckf/paysage
Commit Name: 9962067e1b9886c546abc0af8d4d00fc31cab1ef
Time: 2017-05-19
Author: jrwalsh1@gmail.com
File Name: paysage/layers.py
Class Name: BernoulliLayer
Method Name: online_param_update
Project Name: drckf/paysage
Commit Name: 15a58be0f54f22ea43b8db25d11dd0c402acf47f
Time: 2017-05-19
Author: jrwalsh1@gmail.com
File Name: paysage/metrics.py
Class Name: EnergyZscore
Method Name: update
Project Name: drckf/paysage
Commit Name: 9962067e1b9886c546abc0af8d4d00fc31cab1ef
Time: 2017-05-19
Author: jrwalsh1@gmail.com
File Name: paysage/layers.py
Class Name: IsingLayer
Method Name: online_param_update
Project Name: drckf/paysage
Commit Name: aaa6b9c9c0a803153ae26a3b28fe2c7fbf3e75fe
Time: 2017-05-19
Author: jrwalsh1@gmail.com
File Name: paysage/metrics.py
Class Name: EnergyGap
Method Name: update