binary_crossentropy: Binary Crossentropy

View source: R/binary_crossentropy.R

binary_crossentropyR Documentation

Binary Crossentropy

Description

Compute Binary 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. This function assumes that inputs are given as probability vectors (and not matrices).

Usage

binary_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 Binary Crossentropy


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