EloquentArduino
EloquentArduino copied to clipboard
compile errors for MicromlMorseIdentificationExample
Trying to compile the morse example file I get several errors, I've been able to compile after the following changes:
- in model.h I've commented out -> #include
, and I've added instead -> #include <stdarg.h> .
In the .ino file:
- changed -> double features[NUM_SAMPLES];
to -> float features[NUM_SAMPLES]; - I've commented out -> self_test();
- added after variable declaration -> Eloquent::ML::Port::RandomForest clf; -In void loop changed the serial print statement to -> Serial.println(clf.idxToLabel(clf.predict(features)));
Yeah, I know the older posts don't match with the current API. I need to take time to review all of them, sorry.