RapidLib  v0.1.2
A simple library for interactive machine learning
classificationEmbindings.h
Go to the documentation of this file.
1 #ifndef classificationEmbindings_h
2 #define classificationEmbindings_h
3 
4 #include <emscripten.h>
5 #include <bind.h>
6 
7 using namespace emscripten;
8 
9 EMSCRIPTEN_BINDINGS(classification_module) {
10  class_<classification, base<modelSet>>("ClassificationCpp") //name change so that I can wrap it in Javascript. -mz
11  .constructor()
12  .constructor< std::vector<trainingExample> >()
13  .constructor<int, int>()
14  .function("train", &classification::train)
15  ;
16 
17 };
18 
19 #endif
bool train(const std::vector< trainingExample > &trainingSet)
Definition: classification.cpp:35
EMSCRIPTEN_BINDINGS(classification_module)
Definition: classificationEmbindings.h:9