Specialization of cross_entropy for the Eigen3 backend
在文件 implementation/SpecialPurpose.h 第 440 行定义.
Public 类型 | |
typedef Matrix::Scalar | T |
typedef Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > | MatrixXt |
静态 Public 成员函数 | |
static T | compute (SGMatrix< T > P, SGMatrix< T > Q) |
typedef Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic> MatrixXt |
Eigen matrix type
在文件 implementation/SpecialPurpose.h 第 446 行定义.
typedef Matrix::Scalar T |
Scalar type
在文件 implementation/SpecialPurpose.h 第 443 行定义.
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]) \)
在文件 implementation/SpecialPurpose.h 第 451 行定义.