#include "activations.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Functions | |
float | activate (float x, ACTIVATION a) |
void | activate_array (float *x, const int n, const ACTIVATION a) |
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) |
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.
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.