NeuroTIC 0.0
Loading...
Searching...
No Matches
ntactivation.h File Reference

Activation Function List
http://tituxdev.github.io/NeuroTIC/src/CPU/ntactivation.c. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  ntact_function_id_t { NTACT_BOOLEAN , NTACT_SIGMOID , NTACT_TOTAL_FUNCTIONS }
 Enumeration of supported activation functions. More...
 

Variables

float(* ntact_activation [NTACT_TOTAL_FUNCTIONS][2])(float)
 Activation function and derivative dispatch tables.
 
float ntact_rand_range [NTACT_TOTAL_FUNCTIONS][2]
 Random initialization range table for activation functions.
 

Detailed Description

Activation Function List
http://tituxdev.github.io/NeuroTIC/src/CPU/ntactivation.c.

@copydetauls ntactivation.c

Definition in file ntactivation.h.

Enumeration Type Documentation

◆ ntact_function_id_t

Enumeration of supported activation functions.

This enumeration defines identifiers for the activation functions implemented in the NeuroTIC framework.
Each identifier corresponds to a specific activation function and its derivative, which are stored in the ntact_activation dispatch table.
The NTACT_TOTAL_FUNCTIONS entry is used to indicate the total number of activation functions available, which is useful for iterating over the dispatch table and for validating activation function identifiers.
Additional activation functions can be added to this enumeration as needed, along with their corresponding implementations in the ntact_activation dispatch table and appropriate entries in the ntact_rand_range for weight initialization.

Enumerator
NTACT_BOOLEAN 

Boolean step activation function.

NTACT_SIGMOID 

Sigmoid activation function.

NTACT_TOTAL_FUNCTIONS 

Total number of activation functions.

Variable Documentation

◆ ntact_activation

float(* ntact_activation[NTACT_TOTAL_FUNCTIONS][2])(float) ( float  )
extern

Activation function and derivative dispatch tables.

See also
ntact_function_id_t for function identifiers.

Defines the mapping between activation identifiers and their associated execution functions.
Indexing:

  • First index : activation identifier
  • Second index : [0] activation [1] derivative

The table is initialized with the supported activation functions, and can be extended to include additional functions as needed.

Referenced by activate().

◆ ntact_rand_range

float ntact_rand_range[NTACT_TOTAL_FUNCTIONS][2]
extern

Random initialization range table for activation functions.

Returns
ntact_rand_range A 2D array where each row corresponds to an activation function, with the first column representing the minimum value and the second column representing the maximum value for weight initialization.
These ranges are used in the randnet function to ensure that weights are initialized within appropriate bounds for each activation function, which can help improve training performance and convergence.

Referenced by randnet().