Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile errors for MicromlMorseIdentificationExample #18

Open
Riccardo451 opened this issue Jan 7, 2021 · 1 comment
Open

compile errors for MicromlMorseIdentificationExample #18

Riccardo451 opened this issue Jan 7, 2021 · 1 comment

Comments

@Riccardo451
Copy link

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

@agrimagsrl
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants