[libfann] 25/242: changed default
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:16 UTC 2014
This is an automated email from the git hooks/post-receive script.
chrisk-guest pushed a commit to tag Version2_0_0
in repository libfann.
commit cdc6b990c05278b7c82e95c1d2e442712bed9052
Author: Steffen Nissen <lukesky at diku.dk>
Date: Tue Dec 9 11:59:11 2003 +0000
changed default
---
src/fann_internal.c | 4 ++--
src/include/fann.h | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/fann_internal.c b/src/fann_internal.c
index d87bd34..ef1d86a 100644
--- a/src/fann_internal.c
+++ b/src/fann_internal.c
@@ -58,8 +58,8 @@ struct fann * fann_allocate_structure(float learning_rate, unsigned int num_laye
ann->multiplier = 256;
#endif
- ann->activation_function_hidden = FANN_SIGMOID;
- ann->activation_function_output = FANN_SIGMOID;
+ ann->activation_function_hidden = FANN_SIGMOID_STEPWISE;
+ ann->activation_function_output = FANN_SIGMOID_STEPWISE;
#ifdef FIXEDFANN
ann->activation_hidden_steepness = ann->multiplier/2;
ann->activation_output_steepness = ann->multiplier/2;
diff --git a/src/include/fann.h b/src/include/fann.h
index 63b1c5e..38553ff 100644
--- a/src/include/fann.h
+++ b/src/include/fann.h
@@ -116,7 +116,7 @@ void fann_set_learning_rate(struct fann *ann, float learning_rate);
*/
#define FANN_SIGMOID 1
#define FANN_THRESHOLD 2
-#define FANN_SIGMOID_STEPWISE 3
+#define FANN_SIGMOID_STEPWISE 3 /* (default) */
/* Set the activation function for the hidden layers (default SIGMOID).
*/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/libfann.git
More information about the debian-science-commits
mailing list