[libfann] 62/242: bug in number of inputs when reading from file
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:20 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 dc8b3de280a40f90674d82f34363f5ff02482c07
Author: Steffen Nissen <lukesky at diku.dk>
Date: Sat Jan 17 23:26:11 2004 +0000
bug in number of inputs when reading from file
---
src/fann_internal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/fann_internal.c b/src/fann_internal.c
index ec1990e..cb45b7d 100644
--- a/src/fann_internal.c
+++ b/src/fann_internal.c
@@ -642,7 +642,7 @@ struct fann * fann_create_from_fd(FILE *conf, const char *configuration_file)
#endif
}
- ann->num_input = ann->first_layer->last_neuron - ann->first_layer->first_neuron;
+ ann->num_input = ann->first_layer->last_neuron - ann->first_layer->first_neuron -1;
ann->num_output = ((ann->last_layer-1)->last_neuron - (ann->last_layer-1)->first_neuron) - 1;
/* allocate room for the actual neurons */
--
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