#NEWLINE# def gibbs_hvh( self , h0_sample ) : #NEWLINE# #INDENT# ' This function implements one step of Gibbs sampling,\n            starting from the hidden state' #NEWLINE# ( pre_sigmoid_v1 , v1_mean , v1_sample ) = self . sample_v_given_h ( h0_sample ) #NEWLINE# ( pre_sigmoid_h1 , h1_mean , h1_sample ) = self . sample_h_given_v ( v1_sample ) #NEWLINE# return [ pre_sigmoid_v1 , v1_mean , v1_sample , pre_sigmoid_h1 , h1_mean , h1_sample ]