Machine learning assignment 4
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
function hidden_probability = visible_state_to_hidden_probabilities(rbm_w, visible_state)
|
||||
% <rbm_w> is a matrix of size <number of hidden units> by <number of visible units>
|
||||
% <visible_state> is a binary matrix of size <number of visible units> by <number of configurations that we're handling in parallel>.
|
||||
% The returned value is a matrix of size <number of hidden units> by <number of configurations that we're handling in parallel>.
|
||||
% This takes in the (binary) states of the visible units, and returns the activation probabilities of the hidden units conditional on those states.
|
||||
|
||||
deltaE = rbm_w * visible_state;
|
||||
hidden_probability = logistic(deltaE);
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user