|
NeuroTIC 0.0
|
Activation Functions List.
http://tituxdev.github.io/NeuroTIC/src/CPU/ntactivation.c.
More...

Go to the source code of this file.
Variables | |||
Activation Functions and Derivatives | |||
Implementations of supported activation functions and their derivatives. Each activation function is implemented as a separate static function, along with its derivative.
Additional activation functions can be added following the same pattern, ensuring that both the function and its derivative are defined and included in the
/
//BOOLEAN
static float boolean( float x ){
return x >= 0.0f ? 1.0f : 0.0f;
}
// [!!] This derivative is not mathematically correct.
// It intentionally returns a constant value to avoid zero-gradient behavior.
static float boolean_d( float x ){
return x= 1.0f;
}
//SIGMOID
static float sigmoid( float x ){
return 1.0f / ( 1.0f + expf( -x ) );
}
static float sigmoid_d( float x ){
x = sigmoid( x );
return x * ( 1.0f - x );
}
// ...
| |||
| float(* | ntact_activation [NTACT_TOTAL_FUNCTIONS][2])(float) | ||
| Activation function and derivative dispatch tables. | |||
Activation Functions List.
http://tituxdev.github.io/NeuroTIC/src/CPU/ntactivation.c.
Definition in file ntactivation.c.
| float(* ntact_activation[NTACT_TOTAL_FUNCTIONS][2])(float) | ( | float | ) |
Activation function and derivative dispatch tables.
Defines the mapping between activation identifiers and their associated execution functions.
Indexing:
The table is initialized with the supported activation functions, and can be extended to include additional functions as needed.
Referenced by activate().