aaa6b9c9c0a803153ae26a3b28fe2c7fbf3e75fe,paysage/metrics.py,EnergyGap,update,#EnergyGap#Any#,239
Before Change
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
None
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)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
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: 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: 4fa0840f0f47bfee172243df6cc8da2eb4be5834
Time: 2017-05-18
Author: jrwalsh1@gmail.com
File Name: paysage/metrics.py
Class Name: HeatCapacity
Method Name: update