From ac82bde55f3206a7a0d1b7a7580bea05096af32b Mon Sep 17 00:00:00 2001
From: Joseph Redmon <pjreddie@gmail.com>
Date: Thu, 17 Apr 2014 22:07:00 +0000
Subject: [PATCH] New feature extraction method
---
src/activations.h | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/activations.h b/src/activations.h
index 15d96d3..9474121 100644
--- a/src/activations.h
+++ b/src/activations.h
@@ -2,13 +2,14 @@
#define ACTIVATIONS_H
typedef enum{
- SIGMOID, RELU, IDENTITY, RAMP
+ SIGMOID, RELU, LINEAR, RAMP, TANH
}ACTIVATION;
ACTIVATION get_activation(char *s);
-double activate(double x, ACTIVATION a);
-double gradient(double x, ACTIVATION a);
+char *get_activation_string(ACTIVATION a);
+float activate(float x, ACTIVATION a);
+float gradient(float x, ACTIVATION a);
#endif
--
Gitblit v1.10.0