code: def test_probability_smaller(self):
      data = np.array([-10, -0.1, 0.0, 0, 1.5, 3.4])
  
      # ============== Without replace value
      # Filter positive number
      modified_data, idxes = filtering.filter_proba(
          data, 3.3, above=False
      )
      np.testing.assert_equal(
          modified_data, np.array([-10, -0.1, 0.0, 0.0, 1.5])
      )
      np.testing.assert_equal(idxes, np.array([0, 1, 2, 3, 4]))
      # Filter zero
      modified_data, idxes = filtering.filter_proba(
          data, 0, above=False
      )
      np.testing.assert_equal(
          modified_data, np.array([-10, -0.1, 0, 0])
      )
      np.testing.assert_equal(idxes, np.array([0, 1, 2, 3]))
      # # Filter negative number
      modified_data, idxes = filtering.filter_proba(
          data, -5, above=False
      )
      np.testing.assert_equal(modified_data, np.array([-10]))
      np.testing.assert_equal(idxes, np.array([0]))
  
      # ============== With replace value
      # Filter positive number
      modified_data, idxes = filtering.filter_proba(
          data, 2, above=False, replace=-99
      )
      np.testing.assert_equal(
          modified_data[modified_data > -99],
          np.array([-10, -0.1, 0.0, 0.0, 1.5]),
      )
      np.testing.assert_equal(idxes, np.array([0, 1, 2, 3, 4]))
      # # Filter zero
      modified_data, idxes = filtering.filter_proba(
          data, 0, above=False, replace=-99
      )
      np.testing.assert_equal(
          modified_data, np.array([-10, -0.1, -99, -99, -99, -99])
      )
      np.testing.assert_equal(idxes, np.array([0, 1]))
      # Filter negative number
      modified_data, idxes = filtering.filter_proba(
          data, -5, above=False, replace=-99
      )
      np.testing.assert_equal(
          modified_data, np.array([-10, -99, -99, -99, -99, -99])
      )
      np.testing.assert_equal(idxes, np.array([0]))
  
file_path: nlpaug/test/util/selection/test_filtering.py
imports: import unittest
  import numpy
  import nlpaug.util.selection.filtering
label_desc: Use image node_id 2 for calling the TestFiltering obj's underlying member method code with example usage: obj.test_probability_smaller() without return types