CrossEntropy#

CrossEntropy(predicted, observed, **kwargs)[source]#

Calculate the cross entropy.

Parameters:
predictednumpy.ndarray

The predicted values.

observednumpy.ndarray

The observed values.

Returns:
float

The cross entropy value.