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.
docstr_tok: ["Test","reverse","sigmoid","."]
code: def test_reverse_sigmoid(self):
      """
      Test reverse sigmoid.
      """
      (_, _), (x_test, _) = self.mnist
      classifier = get_image_classifier_kr_tf()
      preds = classifier.predict(x_test[0:1])
      postprocessor = ReverseSigmoid(beta=1.0, gamma=0.1)
      post_preds = postprocessor(preds=preds)
  
      classifier_prediction_expected = np.asarray(
          [
              [
                  0.12109935,
                  0.0498215,
                  0.0993958,
                  0.06410096,
                  0.11366928,
                  0.04645343,
                  0.06419807,
                  0.30685693,
                  0.07616714,
                  0.05823757,
              ]
          ],
          dtype=np.float32,
      )
      post_classifier_prediction_expected = np.asarray(
          [
              [
                  0.10733664,
                  0.07743666,
                  0.09712707,
                  0.08230411,
                  0.10377649,
                  0.0764482,
                  0.08234023,
                  0.20600921,
                  0.08703023,
                  0.08019119,
              ]
          ],
          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 3 for calling the TestReverseSigmoid obj's underlying member method code with example usage: obj.test_reverse_sigmoid() without return types