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

How to create new input from device sensors for prediction [Arduino Sketch] #155

Open
robroe-tsi opened this issue Feb 23, 2020 · 3 comments

Comments

@robroe-tsi
Copy link

Hi,

I used SeeDot to generate code (for a Bonsai model) for the Arduino device and now I want to change the sketch so that new data (read from sensors of the device) is prepared as input features and fed into the prediction method. My question is how to do this?

It looks like the feature values for the predict() method need to be available in an array X. The sample feature vector that is part of the generated model.h file (PROGMEM MYINT X) contains only integers. But the raw sensor values that where used in the model training script in python (from train.npy) where floats. So there seems to be some ETL (standard., quanti.) that transforms the raw values into those suitable for the model in c. It looks like this ETL is spread over different scripts - some stuff is done in helpermethods.py other later with SeeDot
Do I need to rewrite this ETL in C completely? Or is is already part of the generate C files?

Remark: this question is similar to #109 but the latter was closed without any answer.

I appreciate any help. Many thanks and best, Roberto

@ShishirPatil
Copy link
Member

@sridhargopinath Please look into this.

@sridhargopinath
Copy link
Contributor

@aayan636

@ChristopherKoeppen
Copy link

Hello @robroe-tsi

did you find any answer on your question?
Currently I am also struggling with the usage of the models that have been created.

Regards
affot

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

4 participants