mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Working?
This commit is contained in:
@ -2,16 +2,13 @@
|
||||
#define ACTIVATIONS_H
|
||||
|
||||
typedef enum{
|
||||
SIGMOID, RELU, IDENTITY
|
||||
SIGMOID, RELU, IDENTITY, RAMP
|
||||
}ACTIVATION;
|
||||
|
||||
ACTIVATION get_activation(char *s);
|
||||
double relu_activation(double x);
|
||||
double relu_gradient(double x);
|
||||
double sigmoid_activation(double x);
|
||||
double sigmoid_gradient(double x);
|
||||
double identity_activation(double x);
|
||||
double identity_gradient(double x);
|
||||
|
||||
double activate(double x, ACTIVATION a);
|
||||
double gradient(double x, ACTIVATION a);
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user