EloquentArduino icon indicating copy to clipboard operation
EloquentArduino copied to clipboard

compile errors for MicromlMorseIdentificationExample

Open Riccardo451 opened this issue 4 years ago • 1 comments

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)));

ml_cw_decoder.ino.txt model.h.txt

Riccardo451 avatar Jan 07 '21 09:01 Riccardo451

Yeah, I know the older posts don't match with the current API. I need to take time to review all of them, sorry.

agrimagsrl avatar Jan 07 '21 10:01 agrimagsrl