Skip to content

Commit 7e94de4

Browse files
committed
upgrade version
1 parent 3acae45 commit 7e94de4

17 files changed

+73
-62
lines changed

.local.jenkins.lin.yml

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

_doc/index.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,4 +78,5 @@ Xavier Dupré
7878
Older versions
7979
++++++++++++++
8080

81+
* `0.5.0 <../v0.5.0/index.html>`_
8182
* `0.4.0 <../v0.4.0/index.html>`_

_doc/notebooks/dsgarden/correlation_non_lineaire.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,7 +940,7 @@
940940
},
941941
{
942942
"cell_type": "code",
943-
"execution_count": 49,
943+
"execution_count": null,
944944
"metadata": {
945945
"scrolled": false
946946
},
@@ -962,7 +962,7 @@
962962
"\n",
963963
"def pairplot_cross_val(data, model=None, ax=None, **params):\n",
964964
" if ax is None:\n",
965-
" fig, ax = plt.subplots(\n",
965+
" _fig, ax = plt.subplots(\n",
966966
" data.shape[1], data.shape[1], figsize=params.get(\"figsize\", (10, 10))\n",
967967
" )\n",
968968
" if \"figsize\" in params:\n",

_doc/notebooks/metric/pvalues_examples.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@
10451045
},
10461046
{
10471047
"cell_type": "code",
1048-
"execution_count": 8,
1048+
"execution_count": null,
10491049
"metadata": {},
10501050
"outputs": [
10511051
{
@@ -1087,7 +1087,7 @@
10871087
" if ax is None:\n",
10881088
" import matplotlib.pyplot as plt\n",
10891089
"\n",
1090-
" fig, ax = plt.subplots(1, 1, figsize=figsize)\n",
1090+
" _fig, ax = plt.subplots(1, 1, figsize=figsize)\n",
10911091
"\n",
10921092
" smarker = {\n",
10931093
" (True, True): \"o-\",\n",
@@ -1262,4 +1262,4 @@
12621262
},
12631263
"nbformat": 4,
12641264
"nbformat_minor": 2
1265-
}
1265+
}

_doc/notebooks/ml/logreg_voronoi.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
},
168168
{
169169
"cell_type": "code",
170-
"execution_count": 10,
170+
"execution_count": null,
171171
"metadata": {},
172172
"outputs": [
173173
{
@@ -233,7 +233,7 @@
233233
" cmap = plt.cm.tab20\n",
234234
" Z = Z.reshape(xx.shape)\n",
235235
" if ax is None:\n",
236-
" fig, ax = plt.subplots(1, 1, figsize=figsize or (4, 3))\n",
236+
" _fig, ax = plt.subplots(1, 1, figsize=figsize or (4, 3))\n",
237237
" ax.pcolormesh(xx, yy, Z, cmap=cmap)\n",
238238
"\n",
239239
" # Plot also the training points\n",

_unittests/ut_nlp/test_completion.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ def cmks(trie):
184184
nb += 1
185185
return nb, gmks, gmksd, size
186186

187-
nb, gmks, gmksd, size = cmks(trie)
187+
nb, gmks, gmksd, _size = cmks(trie)
188188
# print(nb, size, gmks / nb, gmksd / nb, gmks / size, gmksd / size)
189189
if gmks > gmksd:
190190
raise AssertionError(f"gmks={gmks} gmksd={gmksd}")
@@ -198,7 +198,7 @@ def cmks(trie):
198198
raise AssertionError("should not happen")
199199

200200
trie = CompletionTrieNode.build(titles)
201-
nb2, gmks2, gmksd2, size = cmks(trie)
201+
nb2, gmks2, gmksd2, _size = cmks(trie)
202202
self.assertEqual(nb, nb2)
203203
self.assertEqual(gmks, gmks2)
204204
self.assertEqual(gmksd, gmksd2)
@@ -207,7 +207,7 @@ def cmks(trie):
207207
# print("-----")
208208
for i in range(1, 20):
209209
trie = CompletionTrieNode.build(titles[:i])
210-
nb, gmks, gmksd, size = cmks(trie)
210+
nb, gmks, gmksd, _size = cmks(trie)
211211
if i == 1:
212212
self.assertEqual(gmks, 30)
213213
# print(i, nb, size, gmks / nb, gmksd / nb, gmks / size, gmksd / size, gmks)
@@ -231,14 +231,14 @@ def cmks(trie):
231231
(None, '"contra el gang del chicharron"', '"Contra el gang del chicharron')
232232
]
233233
trie = CompletionTrieNode.build(titles)
234-
nb, gmks, gmksd, size = cmks(trie)
234+
_nb, gmks, _gmksd, _size = cmks(trie)
235235
# print("***", 1, nb, size, gmks / nb, gmksd / nb,
236236
# gmks / size, gmksd / size, gmks)
237237
self.assertEqual(gmks, 30)
238238

239239
titles.append((None, '"la sequestree"', '"La séquestrée'))
240240
trie = CompletionTrieNode.build(titles)
241-
nb, gmks, gmksd, size = cmks(trie)
241+
_nb, gmks, _gmksd, _size = cmks(trie)
242242
# print("***", 2, nb, size, gmks / nb, gmksd / nb,
243243
# gmks / size, gmksd / size, gmks)
244244
# for n in trie.leaves():

_unittests/ut_nlp/test_completion_mks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ def gain_dynamique_moyen_par_mot(queries, weights):
5656
titles = [_.strip(" \n\r\t") for _ in f.readlines()]
5757
# print(titles[:5])
5858
trie = CompletionTrieNode.build([(None, q) for q in titles])
59-
nb, gmks, gmksd, gmksd2, size = cmks(trie)
60-
gain, gain_dyn, gain_dyn2, ave_length = gain_dynamique_moyen_par_mot(
59+
nb, _gmks, _gmksd, _gmksd2, _size = cmks(trie)
60+
_gain, _gain_dyn, _gain_dyn2, _ave_length = gain_dynamique_moyen_par_mot(
6161
titles, [1.0] * len(titles)
6262
)
6363
# print("***", 1, nb, size, "*", gmks / size, gmksd / size, gmksd2 / size)

_unittests/ut_nlp/test_completion_simple.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,8 @@ def gain_dynamique_moyen_par_mot(queries, weights):
185185
# print(titles[:5])
186186
trie = CompletionSystem([(None, q) for q in titles])
187187
trie.compute_metrics(details=True)
188-
nb, gmks, gmksd, gmksd2, size = cmks(trie)
189-
gain, gain_dyn, gain_dyn2, ave_length = gain_dynamique_moyen_par_mot(
188+
nb, _gmks, _gmksd, _gmksd2, _size = cmks(trie)
189+
_gain, _gain_dyn, _gain_dyn2, _ave_length = gain_dynamique_moyen_par_mot(
190190
titles, [1.0] * len(titles)
191191
)
192192
# print("***", 1, nb, size, "*", gmks / size, gmksd / size, gmksd2 / size)

_unittests/ut_xrun_doc/test_documentation_examples.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def run_test(self, fold: str, name: str, verbose=0) -> int:
4040
cmds = [sys.executable, "-u", os.path.join(fold, name)]
4141
p = subprocess.Popen(cmds, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
4242
res = p.communicate()
43-
out, err = res
43+
_out, err = res
4444
st = err.decode("ascii", errors="ignore")
4545
if "No such file or directory" in st:
4646
raise FileNotFoundError(st) # noqa: B904

_unittests/ut_xrun_doc/test_documentation_notebook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def run_test(self, nb_name: str, verbose=0) -> int:
7676
cmds, stdout=subprocess.PIPE, stderr=subprocess.PIPE
7777
)
7878
res = p.communicate()
79-
out, err = res
79+
_out, err = res
8080
st = err.decode("ascii", errors="ignore")
8181
if "No such file or directory" in st:
8282
raise FileNotFoundError(st) # noqa: B904

0 commit comments

Comments
 (0)