Skip to content

Commit c116e0f

Browse files
GaussianNB test passes + [wip] SVC test
1 parent bcfdcdc commit c116e0f

File tree

74 files changed

+452
-1433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+452
-1433
lines changed

.DS_Store

8 KB
Binary file not shown.

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@ __pycache__
33
*.py[cod]
44
.cache
55
.ipynb_checkpoints
6-
everywhereml/project
6+
everywhereml/project
7+
serve.py
8+
test
9+
notebook.html

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,27 @@ The package implements most of the tools you need to develop a fully functional
5656

5757
Each of these components can be trained in Python and exported to any of the supported languages
5858
with no (or as few as possible) external dependencies.
59-
59+
60+
For example:
61+
62+
```
63+
from everywhereml.data.preprocessing import MinMaxScaler
64+
from sklearn.datasets import load_iris
65+
66+
transformer = MinMaxScaler()
67+
X, y = load_iris(return_X_y=True)
68+
Xt, yt = transformer.fit_transform(X, y)
69+
70+
print('Original range', (X.min(), X.max()))
71+
print('Transformed range', (Xt.min(), Xt.max()))
72+
73+
# port to C++
74+
print(transformer.port(language='cpp'))
75+
76+
# port to Js
77+
print(transformer.port(language='js'))
78+
79+
# port to PHP
80+
print(transformer.port(language='php'))
81+
```
82+

docs/classification/.DS_Store

6 KB
Binary file not shown.
6 KB
Binary file not shown.
6 KB
Binary file not shown.

docs/data/preprocessing/.DS_Store

6 KB
Binary file not shown.

docs/data/preprocessing/.ipynb_checkpoints/BoxCox-checkpoint.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "2801fb1a",
66
"metadata": {},
77
"source": [
8-
"# everywhereml.data.preprocessing.BoxCox\n",
8+
"# BoxCox\n",
99
"\n",
1010
"See [sklearn.preprocessing.PowerTransformer](https://scikit-learn.org/stable/modules/generated/sklearn.preprocessing.PowerTransformer.html).\n",
1111
"\n",

docs/data/preprocessing/.ipynb_checkpoints/CrossDiff-checkpoint.ipynb

Lines changed: 0 additions & 323 deletions
This file was deleted.

docs/data/preprocessing/.ipynb_checkpoints/Fourier-checkpoint.ipynb

Lines changed: 0 additions & 239 deletions
This file was deleted.

0 commit comments

Comments
 (0)