class_docstr: A unittest class for testing the Rounded postprocessor.
class_docstr_tok: ["A","unittest","class","for","testing","the","Rounded","postprocessor","."]
docstr: Test with 3 decimal places.
docstr_tok: ["Test","with","3","decimal","places","."]
code: def test_decimals_3(self):
      """
      Test with 3 decimal places.
      """
      (_, _), (x_test, _) = self.mnist
      preds = self.classifier.predict(x_test[0:1])
      postprocessor = Rounded(decimals=3)
      post_preds = postprocessor(preds=preds)
  
      expected_predictions = np.asarray(
          [
              [
                  0.121,
                  0.05,
                  0.099,
                  0.064,
                  0.114,
                  0.046,
                  0.064,
                  0.307,
                  0.076,
                  0.058,
              ]
          ],
          dtype=np.float32,
      )
      np.testing.assert_array_equal(post_preds, expected_predictions)
  
file_path: adversarial-robustness-toolbox/tests/defences/test_rounded.py
imports: import logging
  import unittest
  import numpy
  from art.defences.postprocessor import Rounded
  from art.utils import load_dataset
  from tests.utils import master_seed, get_image_classifier_kr
label_desc: Use image node_id 4 for calling the TestRounded obj's underlying member method code with example usage: obj.test_decimals_3() without return types