RapidLib  v2.2.0
A simple library for interactive machine learning
trainingExample.h
Go to the documentation of this file.
1 
10 #ifndef TRAININGEXAMPLE_H
11 #define TRAININGEXAMPLE_H
12 
13 #include <vector>
14 #include <string>
15 
17 template<typename T>
19 {
20  std::vector<T> input;
21  std::vector<T> output;
22 };
23 
24 namespace rapidLib
25 {
26  //This is here to keep the old API working
29 }
30 
32 template<typename T>
34 {
35  std::vector<std::vector<T> > input;
36  std::string label;
37 };
38 
39 namespace rapidLib
40 {
41  //This is here to keep the old API working
44 }
45 
46 #endif
Definition: classification.h:75
Definition: trainingExample.h:19
std::vector< T > input
Definition: trainingExample.h:20
std::vector< T > output
Definition: trainingExample.h:21
Definition: trainingExample.h:34
std::string label
Definition: trainingExample.h:36
std::vector< std::vector< T > > input
Definition: trainingExample.h:35