def predict(self, x):
    'Predict the label of a single test example (image).\n\n        Parameters\n        ----------\n        x : numpy.array\n\n        Returns\n        -------\n        int\n            Predicted label of example (image).\n\n        '
    self._forward_prop(x)
    return np.argmax(self._activations[(- 1)])
Predict the label of a single test example (image).

Parameters
----------
x : numpy.array

Returns
-------
int
    Predicted label of example (image).
def predict(self, x):
    'Predict the label of a single test example (image).\n\n        Parameters\n        ----------\n        x : numpy.array\n\n        Returns\n        -------\n        int\n            Predicted label of example (image).\n\n        '
    self._forward_prop(x)
    return np.argmax(self._activations[(- 1)])