mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-15 16:32:45 +01:00
9 lines
151 B
Python
9 lines
151 B
Python
|
#!/usr/bin/env python3
|
||
|
|
||
|
import emlearn
|
||
|
import joblib
|
||
|
|
||
|
estimator = joblib.load("model")
|
||
|
cmodel = emlearn.convert(estimator)
|
||
|
cmodel.save(file='model.h')
|