Every Arduino library example program includes the last 3 lines: #if !defined(EI_CLASSIFIER_SENSOR) || EI_CLASSIFIER_SENSOR != EI_CLASSIFIER_SENSOR_ACCELEROMETER #error “Invalid model for current sensor” #endif
I am wondering how this works because I cannot compile any of the examples, due to this error message.
If you cannot compile this means that the model you’ve exported does not match the sensor (in the example applcation).
See EI_CLASSIFIER_SENSOR in model-parameters/model_metadata.h. In your case it should read EI_CLASSIFIER_SENSOR_ACCELEROMETER.