ESP
0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
Main Page
Related Pages
Namespaces
Classes
Files
Examples
user_touche.cpp
Touche example. See
documentation on the wiki
.
#include <
ESP.h
>
BinaryIntArraySerialStream
stream
(115200, 160);
TcpOStream
oStream
(
"localhost"
, 5204);
GestureRecognitionPipeline
pipeline
;
void
setup
()
{
useStream
(
stream
);
useOutputStream
(
oStream
);
pipeline
.setClassifier(SVM(SVM::POLY_KERNEL, SVM::C_SVC,
false
,
true
,
true
, 0.1, 1.0, 0, 0.5, 2));
usePipeline
(
pipeline
);
setTruePositiveWarningThreshold
(0.90);
setFalseNegativeWarningThreshold
(0.10);
useLeaveOneOutScoring
(
false
);
}
Generated by
1.8.11