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. 1 RGB color classifier |
Fig. 2 IMU classifier |
Fig. 3 Morse Code classifier |
Fig. 4 Key word spotting |