1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests/pkg/emlearn/generate_model.py

9 lines
151 B
Python
Executable File

#!/usr/bin/env python3
import emlearn
import joblib
estimator = joblib.load("model")
cmodel = emlearn.convert(estimator)
cmodel.save(file='model.h')