This repository has been archived by the owner on Jan 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1dcb1ef
commit 915f055
Showing
9 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
{% if platform == 'attiny' %} | ||
float w[{{ FEATURES_DIM }}]; | ||
{% endif %} | ||
|
||
{% for i, w in F.enumerate(support_v) %} | ||
kernels[{{ i }}] = compute_kernel(x, {% for j, wj in F.enumerate(w) %} {% if j > 0 %},{% endif %} {{ wj }} {% endfor %}); | ||
{% if isAttiny %} | ||
{% for j, wj in F.enumerate(w) %} w[{{ j }}] = {{ wj }}; {% endfor %} | ||
kernels[{{ i }}] = compute_kernel(x, w); | ||
{% else %} | ||
kernels[{{ i }}] = compute_kernel(x, {% for j, wj in F.enumerate(w) %} {% if j > 0 %},{% endif %} {{ wj }} {% endfor %}); | ||
{% endif %} | ||
{% endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
|
||
git push origin master -f | ||
#git push origin master -f | ||
rm -rf dist/* | ||
python setup.py sdist | ||
twine upload dist/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,13 +2,13 @@ | |
setup( | ||
name = 'micromlgen', | ||
packages = ['micromlgen'], | ||
version = '0.5', | ||
version = '0.6', | ||
license='MIT', | ||
description = 'Generate C code for microcontrollers from Python\'s sklearn classifiers', | ||
author = 'Simone Salerno', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/agrimagsrl/micromlgen', | ||
download_url = 'https://github.com/agrimagsrl/micromlgen/archive/v_05.tar.gz', | ||
download_url = 'https://github.com/agrimagsrl/micromlgen/archive/v_06.tar.gz', | ||
keywords = ['ML', 'microcontrollers', 'sklearn', 'machine learning'], | ||
install_requires=[ | ||
'jinja2', | ||
|