59562fbb1d97a00c04719b9a8e2b9cf69df54571,qucumber/rbm/binary_rbm.py,BinaryRBM,prob_v_given_h,#BinaryRBM#,128
Before Change
hidden state.
:rtype: torch.Tensor
return (
torch.matmul(h, self.weights.data, out=out)
.add_(self.visible_bias.data)
.sigmoid_()
)
@auto_unsqueeze_arg(1)
def prob_h_given_v(self, v, out=None):
Given a visible unit configuration, compute the probability
After Change
hidden state.
:rtype: torch.Tensor
return (
torch.matmul(h, self.weights.data, out=out)
.add_(self.visible_bias.data)
.sigmoid_()
.clamp_(min=0, max=1)
)
@auto_unsqueeze_arg(1)
def prob_h_given_v(self, v, out=None):
Given a visible unit configuration, compute the probability
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/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_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_h_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_v_given_ha