Go to the source code of this file.
Enumerations | |
enum | ACTIVATION { LOGISTIC, RELU, RELIE, LINEAR, RAMP, TANH, PLSE, LEAKY, ELU, LOGGY, STAIR, HARDTAN, LHTAN } |
Functions | |
float | activate (float x, ACTIVATION a) |
void | activate_array (float *x, const int n, const ACTIVATION a) |
static float | elu_activate (float x) |
static float | elu_gradient (float x) |
ACTIVATION | get_activation (char *s) |
char * | get_activation_string (ACTIVATION a) |
float | gradient (float x, ACTIVATION a) |
void | gradient_array (const float *x, const int n, const ACTIVATION a, float *delta) |
static float | hardtan_activate (float x) |
static float | hardtan_gradient (float x) |
static float | leaky_activate (float x) |
static float | leaky_gradient (float x) |
static float | lhtan_activate (float x) |
static float | lhtan_gradient (float x) |
static float | linear_activate (float x) |
static float | linear_gradient (float x) |
static float | loggy_activate (float x) |
static float | loggy_gradient (float x) |
static float | logistic_activate (float x) |
static float | logistic_gradient (float x) |
static float | plse_activate (float x) |
static float | plse_gradient (float x) |
static float | ramp_activate (float x) |
static float | ramp_gradient (float x) |
static float | relie_activate (float x) |
static float | relie_gradient (float x) |
static float | relu_activate (float x) |
static float | relu_gradient (float x) |
static float | stair_activate (float x) |
static float | stair_gradient (float x) |
static float | tanh_activate (float x) |
static float | tanh_gradient (float x) |
enum ACTIVATION |
Definition at line 6 of file activations.h.
float activate | ( | float | x, |
ACTIVATION | a | ||
) |
Definition at line 62 of file activations.c.
void activate_array | ( | float * | x, |
const int | n, | ||
const ACTIVATION | a | ||
) |
Definition at line 95 of file activations.c.
static float elu_activate | ( | float | x | ) | [inline, static] |
Definition at line 38 of file activations.h.
static float elu_gradient | ( | float | x | ) | [inline, static] |
Definition at line 80 of file activations.h.
ACTIVATION get_activation | ( | char * | s | ) |
Definition at line 43 of file activations.c.
char* get_activation_string | ( | ACTIVATION | a | ) |
Definition at line 8 of file activations.c.
float gradient | ( | float | x, |
ACTIVATION | a | ||
) |
Definition at line 103 of file activations.c.
void gradient_array | ( | const float * | x, |
const int | n, | ||
const ACTIVATION | a, | ||
float * | delta | ||
) |
Definition at line 136 of file activations.c.
static float hardtan_activate | ( | float | x | ) | [inline, static] |
Definition at line 28 of file activations.h.
static float hardtan_gradient | ( | float | x | ) | [inline, static] |
Definition at line 62 of file activations.h.
static float leaky_activate | ( | float | x | ) | [inline, static] |
Definition at line 41 of file activations.h.
static float leaky_gradient | ( | float | x | ) | [inline, static] |
Definition at line 83 of file activations.h.
static float lhtan_activate | ( | float | x | ) | [inline, static] |
Definition at line 50 of file activations.h.
static float lhtan_gradient | ( | float | x | ) | [inline, static] |
Definition at line 56 of file activations.h.
static float linear_activate | ( | float | x | ) | [inline, static] |
Definition at line 34 of file activations.h.
static float linear_gradient | ( | float | x | ) | [inline, static] |
Definition at line 67 of file activations.h.
static float loggy_activate | ( | float | x | ) | [inline, static] |
Definition at line 36 of file activations.h.
static float loggy_gradient | ( | float | x | ) | [inline, static] |
Definition at line 69 of file activations.h.
static float logistic_activate | ( | float | x | ) | [inline, static] |
Definition at line 35 of file activations.h.
static float logistic_gradient | ( | float | x | ) | [inline, static] |
Definition at line 68 of file activations.h.
static float plse_activate | ( | float | x | ) | [inline, static] |
Definition at line 43 of file activations.h.
static float plse_gradient | ( | float | x | ) | [inline, static] |
Definition at line 85 of file activations.h.
static float ramp_activate | ( | float | x | ) | [inline, static] |
Definition at line 40 of file activations.h.
static float ramp_gradient | ( | float | x | ) | [inline, static] |
Definition at line 82 of file activations.h.
static float relie_activate | ( | float | x | ) | [inline, static] |
Definition at line 39 of file activations.h.
static float relie_gradient | ( | float | x | ) | [inline, static] |
Definition at line 81 of file activations.h.
static float relu_activate | ( | float | x | ) | [inline, static] |
Definition at line 37 of file activations.h.
static float relu_gradient | ( | float | x | ) | [inline, static] |
Definition at line 79 of file activations.h.
static float stair_activate | ( | float | x | ) | [inline, static] |
Definition at line 22 of file activations.h.
static float stair_gradient | ( | float | x | ) | [inline, static] |
Definition at line 74 of file activations.h.
static float tanh_activate | ( | float | x | ) | [inline, static] |
Definition at line 42 of file activations.h.
static float tanh_gradient | ( | float | x | ) | [inline, static] |
Definition at line 84 of file activations.h.