Skip to content

Commit 0fbc851

Browse files
committed
fix depedencies
1 parent 0e4b635 commit 0fbc851

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11

22
# EmbML
33

4-
EmbML is a tool written in Python to automatically convert off-board-trained models into C++ or C (C++ is the default option) source code files that can be compiled and executed in low-power microcontrollers. The main goal of EmbML is to produce classifier source codes that will run specifically in resource-constrained hardware systems, using bare metal programming.
4+
EmbML is a tool written in Python to automatically convert off-board-trained models into C++ (default option) or C source code files that can be compiled and executed in low-power microcontrollers. The main goal of EmbML is to produce classifier source codes that will run specifically in resource-constrained hardware systems, using bare metal programming.
55

6-
This tool takes as input a classification model that was trained in a desktop or server computer using WEKA or scikit-learn libraries. EmbML is responsible for converting the input model into a carefully crafted code in C++ or C with support for embedded hardware, such as the avoidance of unnecessary use of SRAM memory and implementation of fixed-point operations for non-integer numbers.
6+
This tool takes as input a classification model that was trained in a desktop or server computer using WEKA or scikit-learn libraries. EmbML is responsible for converting the input model into a carefully crafted code in C or C++ with support for embedded hardware, such as the avoidance of unnecessary use of SRAM memory and implementation of fixed-point operations for non-integer numbers.
77

88
## Input Models
99

@@ -35,7 +35,7 @@ You can install `embml` from [PyPi](https://pypi.org/project/embml/):
3535
pip install embml
3636
```
3737

38-
This tool is supported on Python 2.7 and Python 3.5 versions, and depends on the `javaobj` library (<https://pypi.org/project/javaobj-py3/>).
38+
This tool is supported on Python 2.7 and Python 3.7 versions, and depends on the `javaobj` library (<https://pypi.org/project/javaobj-py3/>).
3939

4040
## How To Use
4141

@@ -49,7 +49,7 @@ embml.sklearnModel(inputModel, outputFile, opts)
4949
embml.wekaModel(inputModel, outputFile, opts)
5050

5151
# opts can include:
52-
# -rules: to generate a decision tree classifier code using if-then-else format.
52+
# -rules: to generate a decision tree classifier code using a representation with if-then-else statements.
5353
# -fxp <n> <m>: to generate a classifier code that uses fixed-point format to perform real number operations. In this case, <n> is the number of integer bits and <m> is the number of fractional bits in the Qn.m format. Note that n + m + 1 must be equal to 32, 16, or 8, since that one bit is used to represent signed numbers.
5454
# -approx: to generate an MLP classifier code that employs an approximation to substitute the sigmoid as an activation function in the neurons.
5555
# -pwl <x>: to generate an MLP classifier code that employs a piecewise approximation to substitute the sigmoid as an activation function in the neurons. In this case, <x> must be equal to 2 (to use an 2-point PWL approximation) or 4 (to use an 4-point PWL approximation).

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="embml",
8-
version="0.0.4",
8+
version="0.0.5",
99
author="Lucas Tsutsui da Silva",
1010
author_email="lucastsui@hotmail.com",
1111
description="A tool to support using classification models in low-power microcontroller-based hardware",
@@ -15,12 +15,14 @@
1515
packages=find_packages(),
1616
classifiers=[
1717
"Programming Language :: Python :: 2.7",
18-
"Programming Language :: Python :: 3.5",
18+
"Programming Language :: Python :: 3.7",
1919
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
2020
"Operating System :: OS Independent",
2121
],
2222
install_requires=[
23-
'javaobj'
23+
'javaobj-py3',
24+
'numpy',
25+
'scikit-learn'
2426
],
2527
license="GPL3",
2628
keywords=[

0 commit comments

Comments
 (0)