Generic class which is specialized for different backends to perform the cross_entropy operation
在文件 implementation/SpecialPurpose.h 第 426 行定义.
Public 类型 | |
typedef Matrix::Scalar | T |
静态 Public 成员函数 | |
static T | compute (Matrix P, Matrix Q) |
typedef Matrix::Scalar T |
Scalar type
在文件 implementation/SpecialPurpose.h 第 429 行定义.
|
static |
Returns the cross entropy between P and Q. The cross entropy is defined as \( H(P,Q) = - \sum_{ij} P[i,j]log(Q[i,j]) \)