ArduinoMicroML
                                
                                 ArduinoMicroML copied to clipboard
                                
                                    ArduinoMicroML copied to clipboard
                            
                            
                            
                        It generate C code for microcontrollers from Python with Scikit-learn.
ArduinoMicroML
Embedded Machine Learning for Microcontroller using MicroML framework. MicroML brings Machine Learning algorithms to microcontrollers, including limited 8-bit Arduino AVR boards, to run a classification model. The original repository can be found here.
Supported classifiers
- Decision Tree
- Random Forest
- XGBoost
- Gaussian Naive Bayes
- Support Vector Machines (SVC and OneClassSVM)
- Relevant Vector Machines
- SEFR (Scalable, Efficient, and Fast classifier)
- PCA (Principal Component Analysis)
Install
pip install micromlgen
Usage e.g. Decision Tree Classifier
from micromlgen import port
from sklearn.tree import DecisionTreeClassifier
from sklearn.datasets import load_iris
clf = DecisionTreeClassifier()
X, y = load_iris(return_X_y=True)
clf.fit(X, y)
print(port(clf))
Examples
|  | 
|---|
| Fig. 1 RGB color classifier | 
|  | 
|---|
| Fig. 2 IMU classifier | 
|  | 
|---|
| Fig. 3 Morse Code classifier | 
|  | 
|---|
| Fig. 4 Key word spotting | 
