SHOGUN
4.2.0
|
Specialization of cross_entropy for the Eigen3 backend
Definition at line 427 of file implementation/SpecialPurpose.h.
Public Types | |
typedef Matrix::Scalar | T |
typedef Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > | MatrixXt |
Static Public Member Functions | |
static T | compute (SGMatrix< T > P, SGMatrix< T > Q) |
typedef Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic> MatrixXt |
Eigen matrix type
Definition at line 433 of file implementation/SpecialPurpose.h.
typedef Matrix::Scalar T |
Scalar type
Definition at line 430 of file implementation/SpecialPurpose.h.
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]) \)
Definition at line 438 of file implementation/SpecialPurpose.h.