Skip to content

Commit 0558411

Browse files
authored
Improve style (#51)
* Improve style * fix ext * fix ut * ext * fix * req * remove * req * fix ut * fix paths
1 parent ecf1664 commit 0558411

File tree

94 files changed

+2103
-4037
lines changed

Some content is hidden

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

94 files changed

+2103
-4037
lines changed

.local.jenkins.lin.yml

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ virtualenv:
1010
install:
1111
- $PYINT -m pip install --upgrade pip
1212
- $PYINT -m pip install --upgrade --no-cache-dir --no-deps --index http://localhost:8067/simple/ scikit-learn>=0.24 --extra-index-url=https://pypi.python.org/simple/
13-
- $PYINT -m pip install --upgrade --no-cache-dir --no-deps --index http://localhost:8067/simple/ jyquickhelper pyquickhelper pyensae pymmails pymyinstall pyrsslocal --extra-index-url=https://pypi.python.org/simple/
1413
- $PYINT -m pip install --upgrade --no-cache-dir --no-deps --index http://localhost:8067/simple/ mlinsights>=0.3 --extra-index-url=https://pypi.python.org/simple/
1514
- $PYINT -m pip install -r requirements.txt
1615
- $PYINT -m pip install -r requirements-dev.txt

_doc/conf.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# -*- coding: utf-8 -*-
21
import sys
32
import os
43
from sphinx_runpython.github_link import make_linkcode_resolve

_doc/examples/plot_logistic_decision.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
# coding: utf-8
21
"""
32
.. _l-example-logistic-decision:
43
@@ -21,6 +20,7 @@
2120
Il faut choisir un seuil sur l'axe des abscisses qui
2221
permette de classer le jeu de données.
2322
"""
23+
2424
import numpy
2525
import matplotlib.pyplot as plt
2626
from pandas import DataFrame

_doc/notebooks/dsgarden/classification_multiple.ipynb

+1-144
Original file line numberDiff line numberDiff line change
@@ -9,149 +9,6 @@
99
"Explorations autour d'un problème de classification multiple."
1010
]
1111
},
12-
{
13-
"cell_type": "code",
14-
"execution_count": 1,
15-
"metadata": {},
16-
"outputs": [
17-
{
18-
"data": {
19-
"text/html": [
20-
"<div id=\"my_id_menu_nb\">run previous cell, wait for 2 seconds</div>\n",
21-
"<script>\n",
22-
"function repeat_indent_string(n){\n",
23-
" var a = \"\" ;\n",
24-
" for ( ; n > 0 ; --n)\n",
25-
" a += \" \";\n",
26-
" return a;\n",
27-
"}\n",
28-
"var update_menu_string = function(begin, lfirst, llast, sformat, send, keep_item, begin_format, end_format) {\n",
29-
" var anchors = document.getElementsByClassName(\"section\");\n",
30-
" if (anchors.length == 0) {\n",
31-
" anchors = document.getElementsByClassName(\"text_cell_render rendered_html\");\n",
32-
" }\n",
33-
" var i,t;\n",
34-
" var text_menu = begin;\n",
35-
" var text_memo = \"<pre>\\nlength:\" + anchors.length + \"\\n\";\n",
36-
" var ind = \"\";\n",
37-
" var memo_level = 1;\n",
38-
" var href;\n",
39-
" var tags = [];\n",
40-
" var main_item = 0;\n",
41-
" var format_open = 0;\n",
42-
" for (i = 0; i <= llast; i++)\n",
43-
" tags.push(\"h\" + i);\n",
44-
"\n",
45-
" for (i = 0; i < anchors.length; i++) {\n",
46-
" text_memo += \"**\" + anchors[i].id + \"--\\n\";\n",
47-
"\n",
48-
" var child = null;\n",
49-
" for(t = 0; t < tags.length; t++) {\n",
50-
" var r = anchors[i].getElementsByTagName(tags[t]);\n",
51-
" if (r.length > 0) {\n",
52-
"child = r[0];\n",
53-
"break;\n",
54-
" }\n",
55-
" }\n",
56-
" if (child == null) {\n",
57-
" text_memo += \"null\\n\";\n",
58-
" continue;\n",
59-
" }\n",
60-
" if (anchors[i].hasAttribute(\"id\")) {\n",
61-
" // when converted in RST\n",
62-
" href = anchors[i].id;\n",
63-
" text_memo += \"#1-\" + href;\n",
64-
" // passer à child suivant (le chercher)\n",
65-
" }\n",
66-
" else if (child.hasAttribute(\"id\")) {\n",
67-
" // in a notebook\n",
68-
" href = child.id;\n",
69-
" text_memo += \"#2-\" + href;\n",
70-
" }\n",
71-
" else {\n",
72-
" text_memo += \"#3-\" + \"*\" + \"\\n\";\n",
73-
" continue;\n",
74-
" }\n",
75-
" var title = child.textContent;\n",
76-
" var level = parseInt(child.tagName.substring(1,2));\n",
77-
"\n",
78-
" text_memo += \"--\" + level + \"?\" + lfirst + \"--\" + title + \"\\n\";\n",
79-
"\n",
80-
" if ((level < lfirst) || (level > llast)) {\n",
81-
" continue ;\n",
82-
" }\n",
83-
" if (title.endsWith('¶')) {\n",
84-
" title = title.substring(0,title.length-1).replace(\"<\", \"&lt;\")\n",
85-
" .replace(\">\", \"&gt;\").replace(\"&\", \"&amp;\");\n",
86-
" }\n",
87-
" if (title.length == 0) {\n",
88-
" continue;\n",
89-
" }\n",
90-
"\n",
91-
" while (level < memo_level) {\n",
92-
" text_menu += end_format + \"</ul>\\n\";\n",
93-
" format_open -= 1;\n",
94-
" memo_level -= 1;\n",
95-
" }\n",
96-
" if (level == lfirst) {\n",
97-
" main_item += 1;\n",
98-
" }\n",
99-
" if (keep_item != -1 && main_item != keep_item + 1) {\n",
100-
" // alert(main_item + \" - \" + level + \" - \" + keep_item);\n",
101-
" continue;\n",
102-
" }\n",
103-
" while (level > memo_level) {\n",
104-
" text_menu += \"<ul>\\n\";\n",
105-
" memo_level += 1;\n",
106-
" }\n",
107-
" text_menu += repeat_indent_string(level-2);\n",
108-
" text_menu += begin_format + sformat.replace(\"__HREF__\", href).replace(\"__TITLE__\", title);\n",
109-
" format_open += 1;\n",
110-
" }\n",
111-
" while (1 < memo_level) {\n",
112-
" text_menu += end_format + \"</ul>\\n\";\n",
113-
" memo_level -= 1;\n",
114-
" format_open -= 1;\n",
115-
" }\n",
116-
" text_menu += send;\n",
117-
" //text_menu += \"\\n\" + text_memo;\n",
118-
"\n",
119-
" while (format_open > 0) {\n",
120-
" text_menu += end_format;\n",
121-
" format_open -= 1;\n",
122-
" }\n",
123-
" return text_menu;\n",
124-
"};\n",
125-
"var update_menu = function() {\n",
126-
" var sbegin = \"\";\n",
127-
" var sformat = '<a href=\"#__HREF__\">__TITLE__</a>';\n",
128-
" var send = \"\";\n",
129-
" var begin_format = '<li>';\n",
130-
" var end_format = '</li>';\n",
131-
" var keep_item = -1;\n",
132-
" var text_menu = update_menu_string(sbegin, 2, 4, sformat, send, keep_item,\n",
133-
" begin_format, end_format);\n",
134-
" var menu = document.getElementById(\"my_id_menu_nb\");\n",
135-
" menu.innerHTML=text_menu;\n",
136-
"};\n",
137-
"window.setTimeout(update_menu,2000);\n",
138-
" </script>"
139-
],
140-
"text/plain": [
141-
"<IPython.core.display.HTML object>"
142-
]
143-
},
144-
"execution_count": 2,
145-
"metadata": {},
146-
"output_type": "execute_result"
147-
}
148-
],
149-
"source": [
150-
"from jyquickhelper import add_notebook_menu\n",
151-
"\n",
152-
"add_notebook_menu()"
153-
]
154-
},
15512
{
15613
"cell_type": "markdown",
15714
"metadata": {},
@@ -254,4 +111,4 @@
254111
},
255112
"nbformat": 4,
256113
"nbformat_minor": 2
257-
}
114+
}

_doc/notebooks/dsgarden/correlation_non_lineaire.ipynb

+16-163
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)