From dbd3d71de5ddab3f53684bfd0118e44ef0d73bdd Mon Sep 17 00:00:00 2001 From: Sascha Grunert Date: Mon, 2 Apr 2018 15:31:27 +0200 Subject: [PATCH] Update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 99bfad3..92c0a3f 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,13 @@ Tinn can be compiled with any C++ compiler as well. int main() { - double in[] = { 0.05, 0.10 }; - double tg[] = { 0.01, 0.99 }; + float in[] = { 0.05, 0.10 }; + float tg[] = { 0.01, 0.99 }; /* Two hidden neurons */ const Tinn tinn = xtbuild(len(in), 2, len(tg)); for(int i = 0; i < 1000; i++) { - double error = xttrain(tinn, in, tg, 0.5); + float error = xttrain(tinn, in, tg, 0.5); printf("%.12f\n", error); } xtfree(tinn);