TronixLab / ArduinoMicroML

It generate C code for microcontrollers from Python with Scikit-learn.

Home Page:https://libraries.io/pypi/micromlgen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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

space-1.jpg
Fig. 1 RGB color classifier
space-1.jpg
Fig. 2 IMU classifier
space-1.jpg
Fig. 3 Morse Code classifier
space-1.jpg
Fig. 4 Key word spotting

Video Tuturoial on YouTube

GitHub Logo

About

It generate C code for microcontrollers from Python with Scikit-learn.

https://libraries.io/pypi/micromlgen


Languages

Language:Jupyter Notebook 100.0%