NetDEM v1.0
|
A class that defines several utility methods for ANN. More...
#include <mlpack_utils.hpp>
Public Types | |
enum class | LayerType { Identity , Linear , ReLU , LeakyReLU , ELU , Softmax , LogSoftMax } |
An enumeration of neural network layer types. More... | |
Static Public Member Functions | |
static double | GetMSE (const arma::mat &pred, const arma::mat &Y) |
Calculates the mean squared error between predicted and ground truth data. | |
static double | GetMAE (const arma::mat &pred, const arma::mat &Y) |
Calculates the mean absolute error between predicted and ground truth data. | |
static arma::mat | GetLabels (const arma::mat &ann_outputs) |
Converts continuous output vectors to class labels. | |
A class that defines several utility methods for ANN.
|
strong |
An enumeration of neural network layer types.
The LayerType
enumeration represents different types of neural network layers. It is used to specify which type of layer to add to a neural network model.
|
static |
Converts continuous output vectors to class labels.
This function converts continuous output vectors to class labels by selecting the index of the maximum value in each row.
ann_outputs | The output data matrix. |
|
static |
Calculates the mean absolute error between predicted and ground truth data.
This function calculates the mean absolute error (MAE) between two matrices of predicted and ground truth data.
pred | The predicted data matrix. |
Y | The ground truth data matrix. |
|
static |
Calculates the mean squared error between predicted and ground truth data.
This function calculates the mean squared error (MSE) between two matrices of predicted and ground truth data.
pred | The predicted data matrix. |
Y | The ground truth data matrix. |