ESP  0.1
The Example-based Sensor Predictions (ESP) system tries to bring machine learning to the maker community.
training-data-manager.cpp File Reference
#include "training-data-manager.h"
#include <sstream>

Macros

#define CHECK_LABEL(label)
 
#define CHECK_INDEX(label, index)
 

Variables

const char kDefaultTrainingDataName [] = "Default"
 

Macro Definition Documentation

#define CHECK_INDEX (   label,
  index 
)
Value:
assert((index) < num_samples_per_label_[(label)] && \
"Index exceeds the available samples");
#define CHECK_LABEL (   label)
Value:
assert((label) > 0 && label <= num_classes_ && \
"Label should be [1, num_classes_]");

Variable Documentation

const char kDefaultTrainingDataName[] = "Default"