ref: 0d1b32b03e29555af52ab0acec0c6b38dd342f49
parent: 4dbca378d69a45170b6f44d67d9c81d704af5827
author: eli <eli@singularity>
date: Tue Dec 24 11:57:30 EST 2024
ann output formatting
--- a/ann.c
+++ b/ann.c
@@ -813,8 +813,7 @@
if (train == 0) {
output = annrun(ann, input);
for (i = 0; i < noutput; i++)
- fprint(2, "%f ", output[i]);
- fprint(2, "\n");
+ fprint(2, "%f%c", output[i], (i == (noutput-1))? '\n': ' ');
free(output);
} else {
if (trainline == 0) {