Skip to content
This repository was archived by the owner on May 25, 2024. It is now read-only.

Commit 7ba12d0

Browse files
committed
hotfix DECISIONS_COUNT
1 parent e0cbb27 commit 7ba12d0

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

MANIFEST

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ setup.cfg
33
setup.py
44
micromlgen/__init__.py
55
micromlgen/micromlgen.py
6+
micromlgen/templates/_scalar_product.jinja
67
micromlgen/templates/binary_classification.jinja
78
micromlgen/templates/classmap.jinja
89
micromlgen/templates/compute_class.jinja
@@ -11,5 +12,6 @@ micromlgen/templates/compute_kernels.bck.jinja
1112
micromlgen/templates/compute_kernels.jinja
1213
micromlgen/templates/compute_votes.jinja
1314
micromlgen/templates/kernel_function.jinja
15+
micromlgen/templates/pca_function.jinja
1416
micromlgen/templates/self_test.jinja
1517
micromlgen/templates/svm.jinja

dist/micromlgen-0.8.tar.gz

-3.4 KB
Binary file not shown.

dist/micromlgen-0.9.tar.gz

3.91 KB
Binary file not shown.

micromlgen/micromlgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def port(clf,
4545
'FEATURES_DIM': len(support_v[0]),
4646
'VECTORS_COUNT': len(support_v),
4747
'CLASSES_COUNT': n_classes,
48-
'DECISIONS_COUNT': n_classes * (n_classes - 1) / 2,
48+
'DECISIONS_COUNT': n_classes * (n_classes - 1) // 2,
4949
'ORIGINAL_FEATURES_DIM': len(support_v[0]) if pca is None else len(pca[0]),
5050
'support_v': support_v,
5151
'n_support': clf.n_support_,

setup.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
setup(
33
name = 'micromlgen',
44
packages = ['micromlgen'],
5-
version = '0.8',
5+
version = '0.9',
66
license='MIT',
77
description = 'Generate C code for microcontrollers from Python\'s sklearn classifiers',
88
author = 'Simone Salerno',
9-
author_email = 'web@agrimag.it',
10-
url = 'https://github.com/agrimagsrl/micromlgen',
11-
download_url = 'https://github.com/agrimagsrl/micromlgen/archive/v_08.tar.gz',
9+
author_email = 'eloquentarduino@gmail.com',
10+
url = 'https://github.com/eloquentarduino/micromlgen',
11+
download_url = 'https://github.com/eloquentarduino/micromlgen/archive/v_09.tar.gz',
1212
keywords = ['ML', 'microcontrollers', 'sklearn', 'machine learning'],
1313
install_requires=[
1414
'jinja2',

0 commit comments

Comments
 (0)