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)
pip install micromlgen
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))
![]() |
|---|
| Fig. 1RGB color classifier |
![]() |
|---|
| Fig. 2IMU classifier |
![]() |
|---|
| Fig. 3Morse Code classifier |
![]() |
|---|
| Fig. 4Key word spotting |




