code: def test_categorical_crossentropy(self):
      predicted = asfloat(
          np.array(
              [
                  [0.1, 0.9],
                  [0.9, 0.1],
                  [0.2, 0.8],
                  [0.5, 0.5],
              ]
          )
      )
      actual = asfloat(
          np.array(
              [
                  [0, 1],
                  [1, 0],
                  [0, 1],
                  [1, 0],
              ]
          )
      )
  
      error = objectives.categorical_crossentropy(actual, predicted)
      self.assertAlmostEqual(0.28, self.eval(error), places=2)
  
file_path: neupy/tests/algorithms/gd/test_objectives.py
imports: import numpy
  from neupy.utils import asfloat
  from neupy.algorithms.gd import objectives
  from base import BaseTestCase
label_desc: Use image node_id 3 for calling the ErrorFuncTestCase obj's underlying member method code with example usage: obj.test_categorical_crossentropy() without return types