def gibbs_sampling_step(self, visible):
    ' Performs one step of gibbs sampling.\n        :param visible: activations of the visible units\n        :return: tuple(hidden probs, hidden states, visible probs,\n                       new hidden probs, new hidden states)\n        '
    (hprobs, hstates) = self.sample_hidden_from_visible(visible)
    vprobs = self.sample_visible_from_hidden(hprobs)
    (hprobs1, hstates1) = self.sample_hidden_from_visible(vprobs)
    return (hprobs, hstates, vprobs, hprobs1, hstates1)
Performs one step of gibbs sampling.
:param visible: activations of the visible units
:return: tuple(hidden probs, hidden states, visible probs,
               new hidden probs, new hidden states)
def gibbs_sampling_step(self, visible):
    ' Performs one step of gibbs sampling.\n        :param visible: activations of the visible units\n        :return: tuple(hidden probs, hidden states, visible probs,\n                       new hidden probs, new hidden states)\n        '
    (hprobs, hstates) = self.sample_hidden_from_visible(visible)
    vprobs = self.sample_visible_from_hidden(hprobs)
    (hprobs1, hstates1) = self.sample_hidden_from_visible(vprobs)
    return (hprobs, hstates, vprobs, hprobs1, hstates1)