philsupertramp/game-math
Loading...
Searching...
No Matches
Functions
utils.h File Reference
#include "../Matrix.h"
#include "../matrix_utils.h"

Go to the source code of this file.

Functions

double relu (const double &in)
 
double sigmoid (const double &in)
 
Matrix< double > Sigmoid (const Matrix< double > &in)
 
double accuracy (const Matrix< double > &predictions, const Matrix< double > &ground_truth)
 

Function Documentation

◆ accuracy()

double accuracy ( const Matrix< double > &  predictions,
const Matrix< double > &  ground_truth 
)
Examples
ds/TestKNN.cpp.

◆ relu()

double relu ( const double &  in)

◆ sigmoid()

double sigmoid ( const double &  in)

◆ Sigmoid()

Matrix< double > Sigmoid ( const Matrix< double > &  in)