SHOGUN  4.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Types | Static Public Member Functions
cross_entropy< Backend, Matrix > Struct Template Reference

Detailed Description

template<enum Backend, class Matrix>
struct shogun::linalg::implementation::special_purpose::cross_entropy< Backend, Matrix >

Generic class which is specialized for different backends to perform the cross_entropy operation

Definition at line 426 of file implementation/SpecialPurpose.h.

Public Types

typedef Matrix::Scalar T
 

Static Public Member Functions

static T compute (Matrix P, Matrix Q)
 

Member Typedef Documentation

typedef Matrix::Scalar T

Scalar type

Definition at line 429 of file implementation/SpecialPurpose.h.

Member Function Documentation

static T compute ( Matrix  P,
Matrix  Q 
)
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]) \)


The documentation for this struct was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation