categorical_crossentropy: Categorical Crossentropy

View source: R/categorical_crossentropy.R

categorical_crossentropyR Documentation

Categorical Crossentropy

Description

Compute Categorical Crossentropy. The squared loss, in a sense, quantifies the error (or alternatively closeness) of the predicted label to the true label. When specialized to the case of probabilistic classifiers, this then can be interpreted as a reliability measure.

Usage

categorical_crossentropy(y_real, y_predicted)

Arguments

y_real

Observed values (integers) to compare with (in matrix format for multiclass classification).

y_predicted

Predicte values (probabiblities by class).

Value

integer value of Categorical Crossentropy


nikitagusarov/performancer documentation built on Jan. 12, 2023, 12:19 a.m.