def gibbs_vhv(self, v0_sample):
        pre_sigmoid_h1, h1_mean, h1_sample = self.sample_h_given_v(v0_sample)
        pre_sigmoid_v1, v1_mean, v1_sample = self.sample_v_given_h(h1_sample)
        return [pre_sigmoid_h1, h1_mean, h1_sample,
                pre_sigmoid_v1, v1_mean, v1_sample]

    # start-snippet-2
Ensure the mongo collections are indexed.
dataset/ETHPy150Open lisa-lab/DeepLearningTutorials/code/rbm.py/RBM.gibbs_vhv--crossover with--dataset/ETHPy150Open IceCTF/ctf-platform/api/api/setup.py/index_mongo