59562fbb1d97a00c04719b9a8e2b9cf69df54571,qucumber/rbm/purification_rbm.py,PurificationRBM,prob_a_given_v,#PurificationRBM#Any#Any#,215
Before Change
given the visible state
:rtype torch.Tensor:
return (
torch.matmul(v, self.weights_U.data.t(), out=out)
.add_(self.aux_bias.data)
.sigmoid_()
)
@auto_unsqueeze_arg(1, 2)
def prob_v_given_ha(self, h, a, out=None):
rGiven a hidden and auxiliary unit configuration, compute
After Change
given the visible state
:rtype torch.Tensor:
return (
torch.matmul(v, self.weights_U.data.t(), out=out)
.add_(self.aux_bias.data)
.sigmoid_()
.clamp_(min=0, max=1)
)
@auto_unsqueeze_arg(1, 2)
def prob_v_given_ha(self, h, a, out=None):
rGiven a hidden and auxiliary unit configuration, compute
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 3
Instances
Project Name: PIQuIL/QuCumber
Commit Name: 59562fbb1d97a00c04719b9a8e2b9cf69df54571
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/purification_rbm.py
Class Name: PurificationRBM
Method Name: prob_a_given_v
Project Name: PIQuIL/QuCumber
Commit Name: 59562fbb1d97a00c04719b9a8e2b9cf69df54571
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/purification_rbm.py
Class Name: PurificationRBM
Method Name: prob_h_given_v
Project Name: PIQuIL/QuCumber
Commit Name: 59562fbb1d97a00c04719b9a8e2b9cf69df54571
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/binary_rbm.py
Class Name: BinaryRBM
Method Name: prob_v_given_h
Project Name: PIQuIL/QuCumber
Commit Name: 59562fbb1d97a00c04719b9a8e2b9cf69df54571
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/purification_rbm.py
Class Name: PurificationRBM
Method Name: prob_v_given_ha
Project Name: PIQuIL/QuCumber
Commit Name: 59562fbb1d97a00c04719b9a8e2b9cf69df54571
Time: 2019-12-23
Author: emerali@users.noreply.github.com
File Name: qucumber/rbm/binary_rbm.py
Class Name: BinaryRBM
Method Name: prob_h_given_v