cross_entropy: Compute the negative cross-entropy for multi-class...

View source: R/netzuko.R

cross_entropyR Documentation

Compute the negative cross-entropy for multi-class classification

Description

Compute the negative cross-entropy for multi-class classification

Usage

cross_entropy(p, y)

Arguments

p

The predictions

y

The outputs

Value

The negative cross-entropy

Note

For Internal Use


billyhw/netzuko documentation built on March 23, 2022, 4:26 p.m.