From 2b1ce837d5c611f5ca88dcae8248575c80ec21f9 Mon Sep 17 00:00:00 2001 From: Martin Beseda <martin.beseda@vsb.cz> Date: Fri, 18 Jan 2019 16:36:48 +0100 Subject: [PATCH] FIX: Added CrossValidator into 4neuro.h, i.e. API --- include/4neuro.h | 1 + src/examples/x2_data.txt | 122 ++++++++++++++++++++++++++++++++++++ src/examples/x2_fitting.cpp | 4 ++ 3 files changed, 127 insertions(+) create mode 100644 src/examples/x2_data.txt create mode 100644 src/examples/x2_fitting.cpp diff --git a/include/4neuro.h b/include/4neuro.h index 1bded1ed..faa7552c 100644 --- a/include/4neuro.h +++ b/include/4neuro.h @@ -19,6 +19,7 @@ #include "../src/ErrorFunction/ErrorFunctions.h" #include "../src/constants.h" #include "../src/CSVReader/CSVReader.h" +#include "../src/CrossValidator/CrossValidator.h" // Abbreaviate lib4neuro namespace to l4n namespace l4n = lib4neuro; diff --git a/src/examples/x2_data.txt b/src/examples/x2_data.txt new file mode 100644 index 00000000..111c81e0 --- /dev/null +++ b/src/examples/x2_data.txt @@ -0,0 +1,122 @@ +x y +-6 0 +-5.9 0 +-5.8 0 +-5.7 0 +-5.6 0 +-5.5 0 +-5.4 0 +-5.3 0 +-5.2 0 +-5.1 0 +-5 0 +-4.9 0 +-4.8 0 +-4.7 0 +-4.6 0 +-4.5 0 +-4.4 0 +-4.3 0 +-4.2 0 +-4.1 0 +-4 0 +-3.9 0 +-3.8 0 +-3.7 0 +-3.6 0 +-3.5 0 +-3.4 0 +-3.3 0 +-3.2 0 +-3.1 0 +-3 0 +-2.9 0 +-2.8 0 +-2.7 0 +-2.6 0 +-2.5 0 +-2.4 0 +-2.3 0 +-2.2 0 +-2.1 0 +-2 0 +-1.9 0 +-1.8 0 +-1.7 0 +-1.6 0 +-1.5 0 +-1.4 0 +-1.3 0 +-1.2 0 +-1.1 0 +-1 0 +-0.9 0.05 +-0.8 0.1 +-0.7 0.15 +-0.6 0.2 +-0.5 0.25 +-0.4 0.3 +-0.3 0.35 +-0.2 0.4 +-0.1 0.45 +0 0.5 +0.1 0.55 +0.2 0.6 +0.3 0.65 +0.4 0.7 +0.5 0.75 +0.6 0.8 +0.7 0.85 +0.8 0.9 +0.9 0.95 +1 1 +1.1 1 +1.2 1 +1.3 1 +1.4 1 +1.5 1 +1.6 1 +1.7 1 +1.8 1 +1.9 1 +2 1 +2.1 1 +2.2 1 +2.3 1 +2.4 1 +2.5 1 +2.6 1 +2.7 1 +2.8 1 +2.9 1 +3 1 +3.1 1 +3.2 1 +3.3 1 +3.4 1 +3.5 1 +3.6 1 +3.7 1 +3.8 1 +3.9 1 +4 1 +4.1 1 +4.2 1 +4.3 1 +4.4 1 +4.5 1 +4.6 1 +4.7 1 +4.8 1 +4.9 1 +5 1 +5.1 1 +5.2 1 +5.3 1 +5.4 1 +5.5 1 +5.6 1 +5.7 1 +5.8 1 +5.9 1 +6 1 diff --git a/src/examples/x2_fitting.cpp b/src/examples/x2_fitting.cpp new file mode 100644 index 00000000..eb90e39b --- /dev/null +++ b/src/examples/x2_fitting.cpp @@ -0,0 +1,4 @@ +// +// Created by martin on 17.1.19. +// + -- GitLab