Skip to content

Commit 4b610ba

Browse files
committed
update version
1 parent d90a675 commit 4b610ba

File tree

7 files changed

+35
-32
lines changed

7 files changed

+35
-32
lines changed

HISTORY.rst

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -5,26 +5,34 @@
55
History
66
=======
77

8-
current - 2022-07-22 - 0.00Mb
8+
current - 2023-07-03 - 0.00Mb
9+
=============================
10+
11+
* #115: Updates tree decision criterion for scikit-learn 1.2 (2023-07-02)
12+
* #113: Removes normalize attributes (deprecated) (2022-11-29)
13+
* #110: Fixes perplexity issue with PredictableTSNE (2022-08-06)
14+
* #109: Use f strings in more places (2022-07-22)
15+
16+
0.3.649 - 2022-07-22 - 2.35Mb
917
=============================
1018

1119
* #105: Update for python 3.10 (2022-07-22)
1220
* #108: Uses f strings (2022-07-19)
1321

14-
0.3.631 - 2022-05-19 - 0.52Mb
22+
0.3.631 - 2022-05-19 - 2.21Mb
1523
=============================
1624

1725
* #107: Updates CI for scikit-learn==1.1 (2022-05-18)
1826
* #106: Fixes failing import _joblib_parallel_args (2022-02-18)
1927
* #99: LICENSE file missing in PyPI release (2021-11-20)
2028

21-
0.3.614 - 2021-10-02 - 0.52Mb
29+
0.3.614 - 2021-10-02 - 1.73Mb
2230
=============================
2331

2432
* #103: Updates for scikit-learn>=1.0 (2021-10-02)
2533
* #94: Fixed Numpy boolean array indexing issue for 2dim arrays. (2021-09-27)
2634

27-
0.3.606 - 2021-08-22 - 0.52Mb
35+
0.3.606 - 2021-08-22 - 2.35Mb
2836
=============================
2937

3038
* #102: Implements numpy.digitalize with a DecisionTreeRegressor (2021-08-22)
@@ -37,32 +45,16 @@ current - 2022-07-22 - 0.00Mb
3745
* #98: Fixes #97, fix issue with deepcopy and criterion (2021-05-03)
3846
* #97: piecewise_decision_tree does not compile with the latest version of scikit-learn (2021-05-03)
3947
* #85: Fixes #70, implements DecisionTreeLogisticRegression (2021-05-02)
40-
41-
0.3.549 - 2021-01-09 - 0.67Mb
42-
=============================
43-
4448
* #93: Include build wheel for all platforms in CI (2021-01-09)
45-
46-
0.3.543 - 2021-01-03 - 0.67Mb
47-
=============================
48-
4949
* #89: Install fails: ModuleNotFoundError: No module named 'sklearn' (2021-01-03)
5050
* #92: QuantileMLPRegressor does not work with scikit-learn 0.24 (2021-01-01)
5151
* #91: Fixes regression criterion for scikit-learn 0.24 (2021-01-01)
5252
* #90: Fixes PipelineCache for scikit-learn 0.24 (2021-01-01)
53-
54-
0.2.508 - 2020-09-02 - 0.43Mb
55-
=============================
56-
5753
* #88: Change for scikit-learn 0.24 (2020-09-02)
5854
* #87: Set up CI with Azure Pipelines (2020-09-02)
5955
* #86: Update CI, use python 3.8 (2020-09-02)
6056
* #71: update kmeans l1 to the latest kmeans (signatures changed) (2020-08-31)
6157
* #84: style (2020-08-30)
62-
63-
0.2.491 - 2020-08-06 - 0.83Mb
64-
=============================
65-
6658
* #83: Upgrade version (2020-08-06)
6759
* #82: Fixes #81, skl 0.22, 0.23 together (2020-08-06)
6860
* #81: Make mlinsights work with scikit-learn 0.22 and 0.23 (2020-08-06)

MANIFEST.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
recursive-include onnx_extended *.c *.cpp *.h *.pyx *.pxd *.pxi *.py
2+
include pyproject.toml
3+
include MANIFEST.in
4+
include setup.cfg
15
prune _doc
26
prune _unittests
37
prune bin
4-
prune .circleci
58
exclude *.bat
69
exclude *.yml
710
exclude *.git*

_unittests/ut_mlmodel/test_categories_to_integers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def test_categories_to_integers_pickle(self):
105105
data = os.path.join(os.path.abspath(
106106
os.path.dirname(__file__)), "data", "adult_set.txt")
107107
df = pandas.read_csv(data, sep="\t")
108-
run_test_sklearn_pickle(lambda: CategoriesToIntegers(skip_errors=True), df)
108+
run_test_sklearn_pickle(
109+
lambda: CategoriesToIntegers(skip_errors=True), df)
109110

110111
@ignore_warnings(skipped_warnings)
111112
def test_categories_to_integers_clone(self):

mlinsights/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@brief Module *mlinsights*.
55
Look for insights for machine learned models.
66
"""
7-
__version__ = "0.4.649"
7+
__version__ = "0.4.664"
88
__author__ = "Xavier Dupré"
99
__github__ = "https://github.com/sdpython/mlinsights"
1010
__url__ = "http://www.xavierdupre.fr/app/mlinsights/helpsphinx/index.html"

mlinsights/mlmodel/piecewise_tree_regression.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,8 @@ def _fit_reglin(self, X, y, sample_weight):
132132
if len(ys.shape) == 1:
133133
ys = ys[:, numpy.newaxis]
134134
ys = ys.copy()
135-
ws = sample_weight[ind].copy() if sample_weight is not None else None
135+
ws = sample_weight[ind].copy(
136+
) if sample_weight is not None else None
136137
dec = LinearRegressorCriterion.create(xs, ys, ws)
137138
dec.node_beta(self.betas_[i, :])
138139

mlinsights/mltree/tree_digitize.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ def add_root(index):
8484
is_left = False
8585
is_leaf = False
8686
threshold = bins[index]
87-
n = tree_add_node(tree, parent, is_left, is_leaf, 0, threshold, 0, 1, 1., 0)
87+
n = tree_add_node(tree, parent, is_left, is_leaf,
88+
0, threshold, 0, 1, 1., 0)
8889
values.append(UNUSED)
8990
n_nodes.append(n)
9091
return n
@@ -95,15 +96,17 @@ def add_nodes(parent, i, j, is_left):
9596
# it means j is the parent split
9697
if i == j:
9798
# leaf
98-
n = tree_add_node(tree, parent, is_left, True, 0, 0, 0, 1, 1., 0)
99+
n = tree_add_node(tree, parent, is_left,
100+
True, 0, 0, 0, 1, 1., 0)
99101
n_nodes.append(n)
100102
values.append(i)
101103
return n
102104
if i + 1 == j:
103105
# split
104106
values.append(UNUSED)
105107
th = bins[i]
106-
n = tree_add_node(tree, parent, is_left, False, 0, th, 0, 1, 1., 0)
108+
n = tree_add_node(tree, parent, is_left,
109+
False, 0, th, 0, 1, 1., 0)
107110
n_nodes.append(n)
108111
add_nodes(n, i, i, True)
109112
add_nodes(n, i, j, False)
@@ -113,7 +116,8 @@ def add_nodes(parent, i, j, is_left):
113116
values.append(UNUSED)
114117
index = (i + j) // 2
115118
th = bins[index]
116-
n = tree_add_node(tree, parent, is_left, False, 0, th, 0, 1, 1., 0)
119+
n = tree_add_node(tree, parent, is_left,
120+
False, 0, th, 0, 1, 1., 0)
117121
n_nodes.append(n)
118122
add_nodes(n, i, index, True)
119123
add_nodes(n, index, j, False)
@@ -123,15 +127,17 @@ def add_nodes(parent, i, j, is_left):
123127
if i + 1 == j:
124128
# leaf
125129
values.append(j)
126-
n = tree_add_node(tree, parent, is_left, True, 0, 0, 0, 1, 1., 0)
130+
n = tree_add_node(tree, parent, is_left,
131+
True, 0, 0, 0, 1, 1., 0)
127132
n_nodes.append(n)
128133
return n
129134
if i + 1 < j:
130135
# split
131136
values.append(UNUSED)
132137
index = (i + j) // 2
133138
th = bins[index]
134-
n = tree_add_node(tree, parent, is_left, False, 0, th, 0, 1, 1., 0)
139+
n = tree_add_node(tree, parent, is_left,
140+
False, 0, th, 0, 1, 1., 0)
135141
n_nodes.append(n)
136142
add_nodes(n, i, index, True)
137143
add_nodes(n, index, j, False)

mlinsights/plotting/visualize.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ def _get_name_simple(name, data):
7373

7474
info = _pipeline_info(
7575
model, new_data, context, former_data=new_data)
76-
#new_outputs = []
76+
# new_outputs = []
7777
# for o in info[-1]['outputs']:
7878
# add = _get_name(context, prefix=o, info=info)
7979
# outputs.append(add)
8080
# new_outputs.append(add)
81-
#info[-1]['outputs'] = new_outputs
81+
# info[-1]['outputs'] = new_outputs
8282
outputs.extend(info[-1]['outputs'])
8383
infos.extend(info)
8484

0 commit comments

Comments
 (0)