554a2bff60820efb49ae777b02bf4bd9a71603e2,paysage/models/tap_machine.py,TAP_rbm,gradient,#TAP_rbm#Any#Any#,242
Before Change
// Compute the gradients at this minimizing magnetization
m_v_quad = m.v - be.square(m.v)
m_h_quad = m.h - be.square(m.h)
dw_EMF = -be.outer(m.v, m.h) - be.multiply(w, be.outer(m_v_quad, m_h_quad))
da_EMF = -m.v
db_EMF = -m.h
After Change
grad_a_gamma = self.grad_a_gamma_MF
grad_b_gamma = self.grad_b_gamma_MF
grad_w_gamma = self.grad_w_gamma_MF
elif self.terms == 2:
grad_a_gamma = self.grad_a_gamma_TAP2
grad_b_gamma = self.grad_b_gamma_TAP2
grad_w_gamma = self.grad_w_gamma_TAP2
elif self.terms == 3:
grad_a_gamma = self.grad_a_gamma_TAP3
grad_b_gamma = self.grad_b_gamma_TAP3
grad_w_gamma = self.grad_w_gamma_TAP3
// compute the TAP3 approximation to the Gibbs free energy:
EMF = 1e6
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: drckf/paysage
Commit Name: 554a2bff60820efb49ae777b02bf4bd9a71603e2
Time: 2017-04-20
Author: geminatea@gmail.com
File Name: paysage/models/tap_machine.py
Class Name: TAP_rbm
Method Name: gradient
Project Name: khaotik/DaNet-Tensorflow
Commit Name: 15ebbc412a58cc799063e781981ff5937e3d3fd9
Time: 2017-08-14
Author: junkkhaotik@gmail.com
File Name: app/ops.py
Class Name:
Method Name: pit_mse_loss
Project Name: ncullen93/torchsample
Commit Name: 1344dee35dbacaaaaabdaf452f0dfe74e3ab50e4
Time: 2017-04-19
Author: ncullen@modv-vlan533.0288.apn.wlan.wireless-pennnet.upenn.edu
File Name: torchsample/modules/constraints.py
Class Name: MaxNorm
Method Name: __call__
Project Name: XifengGuo/CapsNet-Keras
Commit Name: 688e64fd31e85371d51f44053bac2acde2328f1e
Time: 2017-10-30
Author: guoxifeng1990@163.com
File Name: capsulelayers.py
Class Name: Mask
Method Name: call