class_docstr: A unittest class for testing the ReverseSigmoid postprocessor.
class_docstr_tok: ["A","unittest","class","for","testing","the","ReverseSigmoid","postprocessor","."]
docstr: Test reverse sigmoid parameter beta for binary classifier
docstr_tok: ["Test","reverse","sigmoid","parameter","beta","for","binary","classifier"]
code: def test_reverse_sigmoid_beta_binary(self):
      """
      Test reverse sigmoid parameter beta for binary classifier
      """
      (_, _), (x_test, _) = self.mnist
      classifier = get_image_classifier_kr_tf_binary()
      preds = classifier.predict(x_test[0:1])
      postprocessor = ReverseSigmoid(beta=0.75, gamma=0.1)
      post_preds = postprocessor(preds=preds)
  
      classifier_prediction_expected = np.asarray(
          [[0.5301345]], dtype=np.float32
      )
      post_classifier_prediction_expected = np.asarray(
          [[0.5278717]], dtype=np.float32
      )
  
      np.testing.assert_array_almost_equal(
          preds, classifier_prediction_expected, decimal=4
      )
      np.testing.assert_array_almost_equal(
          post_preds, post_classifier_prediction_expected, decimal=4
      )
  
file_path: adversarial-robustness-toolbox/tests/defences/test_reverse_sigmoid.py
imports: import logging
  import unittest
  import numpy
  from art.utils import load_dataset
  from art.defences.postprocessor import ReverseSigmoid
  from tests.utils import master_seed, get_image_classifier_kr_tf, get_image_classifier_kr_tf_binary
label_desc: Use image node_id 7 for calling the TestReverseSigmoid obj's underlying member method code with example usage: obj.test_reverse_sigmoid_beta_binary() without return types