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
softmax< Backend, Matrix > Struct Template Reference

Detailed Description

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

Applies the softmax function inplace to a matrix. The softmax function is defined as \( f(A[i,j]) = \frac{exp(A[i,j])}{\sum_i exp(A[i,j])} \)

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

Public Types

typedef Matrix::Scalar T
 

Static Public Member Functions

static void compute (Matrix A)
 

Member Typedef Documentation

typedef Matrix::Scalar T

Scalar type

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

Member Function Documentation

static void compute ( Matrix  A)
static

Applies the softmax function inplace to a matrix. The softmax function is defined as \( f(A[i,j]) = \frac{exp(A[i,j])}{\sum_i exp(A[i,j])} \)


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

SHOGUN Machine Learning Toolbox - Documentation