AIfES 2
2.0.0
|
Type indicator of the loss to check for the loss type. More...
#include <aifes_core.h>
Data Fields | |
const char * | name |
Name of the loss type (for example "Mean Squared Error") | |
void(* | print_specs )(const ailoss_t *self) |
Set a function to print specs of the loss. More... | |
Type indicator of the loss to check for the loss type.
Every loss should have a constant global variable of this type which indicates the loss type.
Example for the mse loss:
Checks for the loss type can look like this:
void(* print_specs) (const ailoss_t *self) |
Set a function to print specs of the loss.
This function should only be set in the debug mode when prints are required (to save memory otherwise)
self | The loss |
A function for printing (for example printf) |