MLask 1.0.0
A custom c++ deep learning library
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
mlask::GenericErrorFunction< err > Class Template Reference

Class representing an error function Children should define a way to move forawrd and backward, but for simplicity they define a function that operates on a single x_1 and x_2 from result vector and expected vector, instead of on the entire vector. More...

#include <GenericErrorFunction.hpp>

Static Public Member Functions

static vectorOut error (vectorOut result, vectorOut expected)
 calculates derived error
 
static float_t error_scalar (vectorOut result, vectorOut expected)
 get the error as a scalar value
 

Detailed Description

template<ErrorFunction err>
class mlask::GenericErrorFunction< err >

Class representing an error function Children should define a way to move forawrd and backward, but for simplicity they define a function that operates on a single x_1 and x_2 from result vector and expected vector, instead of on the entire vector.

Member Function Documentation

◆ error()

template<ErrorFunction err>
static vectorOut mlask::GenericErrorFunction< err >::error ( vectorOut  result,
vectorOut  expected 
)
inlinestatic

calculates derived error

Parameters
resultneural network result
expectedexpected result
Returns
derived error

◆ error_scalar()

template<ErrorFunction err>
static float_t mlask::GenericErrorFunction< err >::error_scalar ( vectorOut  result,
vectorOut  expected 
)
inlinestatic

get the error as a scalar value

Parameters
resultneural network result in a vector form
expectedexpected result in a vector form
Returns
error as a scalar value

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