ESP  0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
ESP.h
Go to the documentation of this file.
1 
40 #pragma once
41 
42 #include "GRT/GRT.h"
43 #include "calibrator.h"
44 #include "iostream.h"
45 #include "tuneable.h"
46 #include "training.h"
47 
63 
79 
92 
102 void usePipeline(GRT::GestureRecognitionPipeline &pipeline);
103 
115 
151 
175 void useTrainingDataAdvice(string advice);
176 
197 void useLeaveOneOutScoring(bool enable = true);
198 
202 void setGUIBufferSize(uint32_t buffer_size);
203 
212 
220 
221 using namespace GRT;
void useStream(IOStream &stream)
Definition: ofApp.cpp:2692
Functions for specifying parameters that can be tuned by the user.
void useTrainingDataAdvice(string advice)
Provide the user with custom advice on collecting training data.
Definition: ofApp.cpp:2706
Definition: iostream.h:6
Calibrator calibrator
Definition: user_accelerometer_gestures.cpp:8
Definition: Filter.cpp:23
Base class for output streams that forward ESP prediction results to other systems.
Definition: ostream.h:43
Specifies data samples and code used to calibrate incoming sensor data.
Definition: calibrator.h:121
TrainingSampleCheckerResult(* TrainingSampleChecker)(const GRT::MatrixDouble &)
function that takes a constant reference to a GRT MatrixDouble and returns a TrainingSampleCheckerRes...
Definition: training.h:54
VectorDouble threshold(VectorDouble in)
Definition: user_accelerometer_walk_detection.cpp:79
void useTrainingSampleChecker(TrainingSampleChecker checker)
Register a function for checking training samples.
Definition: ofApp.cpp:2702
ASCIISerialStream stream(115200, 3)
GestureRecognitionPipeline pipeline
Definition: user_accelerometer_gestures.cpp:7
Base class for output streams that forward ESP pipeline output to other systems.
Definition: ostream.h:60
void useLeaveOneOutScoring(bool enable=true)
Whether or not to do leave-one-out scoring of training data.
Definition: ofApp.cpp:2710
void setFalseNegativeWarningThreshold(double threshold)
Only warn (highlight the confusion score) if the false negative rate is larger than the threshold...
Definition: ofApp.cpp:2718
Definition: iostream.h:7
void usePipeline(GRT::GestureRecognitionPipeline &pipeline)
Definition: ofApp.cpp:2680
Base class for input streams that provide live sensor data to the ESP system. To use an InputStream i...
Definition: istream.h:31
void setGUIBufferSize(uint32_t buffer_size)
Definition: ofApp.cpp:2688
void useOutputStream(OStream &stream)
Specify an OStream to which to stream predictions made by the active ESP pipeline. Multiple output streams are supported.
Definition: ofApp.cpp:2672
void setTruePositiveWarningThreshold(double threshold)
Only warn (highlight the confusion score) if the true positive rate is smaller than the threshold...
Definition: ofApp.cpp:2714
void useCalibrator(Calibrator &calibrator)
Specify the Calibrator to be used by the ESP system.
Definition: ofApp.cpp:2684
void useInputStream(InputStream &stream)
Definition: ofApp.cpp:2668