code: def test_simple_bernoulli_rbm(self):
      data = self.data
  
      rbm = algorithms.RBM(n_visible=4, n_hidden=1)
      rbm.train(data, epochs=100)
  
      output = rbm.visible_to_hidden(data)
      np.testing.assert_array_equal(
          output.round(), np.array([[0, 0, 0, 0, 1, 1, 1, 1, 1, 1]]).T
      )
  
      typical_class1_sample = output[0]
      incomplete_class1_sample = output[2]
      # Check that probability of a typical case is
      # closer to 0 (because 0 is a class defined by RBM)
      # than for the incomplete case.
      self.assertLess(typical_class1_sample, incomplete_class1_sample)
  
      typical_class2_sample = output[4]
      incomplete_class2_sample = output[5]
      # Same as before but for class 1.
      self.assertGreater(
          typical_class2_sample, incomplete_class2_sample
      )
  
file_path: neupy/tests/algorithms/rbm/test_rbm.py
imports: import pickle
  import numpy
  from neupy import algorithms
  from neupy.utils import asfloat
  from base import BaseTestCase
label_desc: Use image node_id 3 for calling the BernoulliRBMTestCase obj's underlying member method code with example usage: obj.test_simple_bernoulli_rbm() without return types