code: def test_random_binary_projections(self):
      dim = 4
      vector_count = 5000
      vectors = numpy.random.randn(dim, vector_count)
  
      # First get recall and precision for one 1-dim random hash
      rbp = RandomBinaryProjections("rbp", 32)
      nearest = NearestFilter(10 + 1)
      engine = Engine(dim, lshashes=[rbp], vector_filters=[nearest])
      exp = RecallPrecisionExperiment(10, vectors)
      result = exp.perform_experiment([engine])
  
      recall1 = result[0][0]
      precision1 = result[0][1]
      searchtime1 = result[0][2]
  
      print(
          "\nRecall RBP: %f, Precision RBP: %f, SearchTime RBP: %f\n"
          % (recall1, precision1, searchtime1)
      )
  
file_path: NearPy/tests/experiments_tests.py
imports: from __future__ import print_function
  import numpy
  import unittest
  from nearpy.experiments import RecallPrecisionExperiment
  from nearpy.hashes import UniBucket, RandomDiscretizedProjections, RandomBinaryProjections, PCABinaryProjections
  from nearpy.filters import NearestFilter, UniqueFilter
  from nearpy.distances import CosineDistance, EuclideanDistance
  from nearpy import Engine
label_desc: Use image node_id 9 for calling the TestRecallExperiment obj's underlying member method code with example usage: obj.test_random_binary_projections() without return types