[libfann] 48/242: changed fann_..._error to fann_..._MSE
Christian Kastner
chrisk-guest at moszumanska.debian.org
Sat Oct 4 21:10:18 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 baa5eac0b597544cfddc8e044a5df8e244b5845c
Author: Steffen Nissen <lukesky at diku.dk>
Date: Tue Jan 13 09:10:47 2004 +0000
changed fann_..._error to fann_..._MSE
---
benchmarks/quality_fixed.c | 8 ++++----
examples/steepness_train.c | 4 ++--
examples/xor_test.c | 2 +-
3 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/benchmarks/quality_fixed.c b/benchmarks/quality_fixed.c
index bbb11d9..9f0cd93 100644
--- a/benchmarks/quality_fixed.c
+++ b/benchmarks/quality_fixed.c
@@ -57,17 +57,17 @@ int main(int argc, char* argv[])
sprintf(file, "%s_%d", argv[2], fann_get_decimal_point(ann));
test_data = fann_read_train_from_file(file);
- fann_reset_error(ann);
+ fann_reset_MSE(ann);
for(i = 0; i != train_data->num_data; i++){
fann_test(ann, train_data->input[i], train_data->output[i]);
}
- train_error = fann_get_error(ann);
+ train_error = fann_get_MSE(ann);
- fann_reset_error(ann);
+ fann_reset_MSE(ann);
for(i = 0; i != test_data->num_data; i++){
fann_test(ann, test_data->input[i], test_data->output[i]);
}
- test_error = fann_get_error(ann);
+ test_error = fann_get_MSE(ann);
sscanf(argv[j], "%d_%lf", &epochs, &total_elapsed);
fprintf(train_out, "%f %.20e %d\n", total_elapsed, train_error, epochs);
diff --git a/examples/steepness_train.c b/examples/steepness_train.c
index 4f2e8bd..1e5003c 100644
--- a/examples/steepness_train.c
+++ b/examples/steepness_train.c
@@ -38,13 +38,13 @@ void train_on_steepness_file(struct fann *ann, char *filename,
fann_set_activation_output_steepness(ann, steepness_start);
for(i = 1; i <= max_epochs; i++){
/* train */
- fann_reset_error(ann);
+ fann_reset_MSE(ann);
for(j = 0; j != data->num_data; j++){
fann_train(ann, data->input[j], data->output[j]);
}
- error = fann_get_error(ann);
+ error = fann_get_MSE(ann);
/* print current output */
if(epochs_between_reports &&
diff --git a/examples/xor_test.c b/examples/xor_test.c
index 2389f89..c8c877e 100644
--- a/examples/xor_test.c
+++ b/examples/xor_test.c
@@ -54,7 +54,7 @@ int main()
#endif
for(i = 0; i < data->num_data; i++){
- fann_reset_error(ann);
+ fann_reset_MSE(ann);
calc_out = fann_test(ann, data->input[i], data->output[i]);
#ifdef FIXEDFANN
printf("XOR test (%d, %d) -> %d, should be %d, difference=%f\n",
--
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