This repository has been archived by the owner on Jan 13, 2024. It is now read-only.
/
conf.py
282 lines (270 loc) · 15.5 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# -*- coding: utf-8 -*-
import sys
import os
from pyquickhelper.helpgen.default_conf import set_sphinx_variables
import ensae_teaching_cs
import pydata_sphinx_theme
sys.path.insert(0, os.path.abspath(os.path.join(os.path.split(__file__)[0])))
set_sphinx_variables(__file__, "Python dans tous ses états", "Xavier Dupré",
2023, "pydata_sphinx_theme", ['_static'],
locals(), add_extensions=None,
github_repo="https://github.com/sdpython/ensae_teaching_cs.git",
extlinks=dict(issue=(
'https://github.com/sdpython/ensae_teaching_cs/issues/%s',
'issue %s')),
book=True, nblayout='table',
doc_version=ensae_teaching_cs.__version__)
html_logo = "_static/project_ico_small.png"
language = "fr"
html_split_index = True
blog_root = "http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx/"
blog_background = False
custom_preamble = """\n\\newcommand{\\girafedec}[3]{ \\begin{array}{ccccc} #1 &=& #2 &+& #3 \\\\ a' &=& a &-& o \\end{array}}
\\newcommand{\\vecteur}[2]{\\pa{#1,\\dots,#2}}
\\newcommand{\\N}[0]{\\mathbb{N}}
\\newcommand{\\indicatrice}[1]{\\mathbf{1\\!\\!1}_{\\acc{#1}}}
\\usepackage[all]{xy}
\\newcommand{\\infegal}[0]{\\leqslant}
\\newcommand{\\supegal}[0]{\\geqslant}
\\newcommand{\\ensemble}[2]{\\acc{#1,\\dots,#2}}
\\newcommand{\\fleche}[1]{\\overrightarrow{ #1 }}
\\newcommand{\\intervalle}[2]{\\left\\{#1,\\cdots,#2\\right\\}}
\\newcommand{\\loinormale}[2]{{\\cal N}\\pa{#1,#2}}
\\newcommand{\\independant}[0]{\\;\\makebox[3ex]{\\makebox[0ex]{\\rule[-0.2ex]{3ex}{.1ex}}\\!\\!\\!\\!\\makebox[.5ex][l]{\\rule[-.2ex]{.1ex}{2ex}}\\makebox[.5ex][l]{\\rule[-.2ex]{.1ex}{2ex}}} \\,\\,}
\\newcommand{\\esp}{\\mathbb{E}}
\\newcommand{\\pr}[1]{\\mathbb{P}\\pa{#1}}
\\newcommand{\\loi}[0]{{\\cal L}}
\\newcommand{\\vecteurno}[2]{#1,\\dots,#2}
\\newcommand{\\norm}[1]{\\left\\Vert#1\\right\\Vert}
\\newcommand{\\dans}[0]{\\rightarrow}
\\newcommand{\\partialfrac}[2]{\\frac{\\partial #1}{\\partial #2}}
\\newcommand{\\partialdfrac}[2]{\\dfrac{\\partial #1}{\\partial #2}}
\\newcommand{\\loimultinomiale}[1]{{\\cal M}\\pa{#1}}
\\newcommand{\\trace}[1]{tr\\pa{#1}}
\\newcommand{\\abs}[1]{\\left|#1\\right|}
"""
# \\usepackage{eepic}
imgmath_latex_preamble += custom_preamble
latex_elements['preamble'] += custom_preamble
project_var_name_t = "ENSAE<br />Xavier Dupré"
project_var_name = "ensae_teaching_cs"
project_var_name_1l = project_var_name_t.replace("<br />", " - ")
html_search_language = "fr"
html_split_index = True
texinfo_documents = [
('index',
f'{project_var_name}',
f'{project_var_name_t}',
author,
f'{project_var_name}',
'ENSAE, contenu des enseignements',
'teachings'),
]
language = "fr"
# cross references
epkg_dictionary.update({
'antiseches_ml_basic_plot_binary_classification': "http://www.xavierdupre.fr/app/papierstat/helpsphinx/gyexamples/plots/plot_roc.html#sphx-glr-gyexamples-plots-plot-roc-py",
'antiseches_ml_basic_plot_clustering': "http://www.xavierdupre.fr/app/papierstat/helpsphinx/gyexamples/ml_basic/plot_clustering.html#sphx-glr-gyexamples-ml-basic-plot-clustering-py",
'ml_basic_plot_binary_classification': "http://www.xavierdupre.fr/app/papierstat/helpsphinx/gyexamples/ml_basic/plot_binary_classification.html#sphx-glr-gyexamples-ml-basic-plot-binary-classification-py",
'ml_basic_plot_grid_search': "http://www.xavierdupre.fr/app/papierstat/helpsphinx/gyexamples/ml_basic/plot_grid_search.html#sphx-glr-gyexamples-ml-basic-plot-grid-search-py",
'ml_basic_plot_roc': "http://www.xavierdupre.fr/app/papierstat/helpsphinx/gyexamples/plots/plot_roc.html#sphx-glr-gyexamples-plots-plot-roc-py",
})
# packages and links
epkg_dictionary.update({
"2048": "https://play2048.co/",
"ACP": 'https://fr.wikipedia.org/wiki/Analyse_en_composantes_principales',
'aftercovid': 'http://www.xavierdupre.fr/app/aftercovid/helpsphinx/index.html',
"Anaconda": 'https://www.continuum.io/downloads',
"anaconda": 'https://www.continuum.io/downloads',
'API REST': "https://en.wikipedia.org/wiki/Representational_state_transfer",
"Arduino": 'https://www.arduino.cc/',
'ARMA': 'https://fr.wikipedia.org/wiki/ARMA',
"array": 'https://docs.scipy.org/doc/numpy/reference/generated/numpy.array.html',
'assert_frame_equal': 'https://github.com/pydata/pandas/blob/master/pandas/util/testing.py',
"AUC": 'http://www.xavierdupre.fr/app/mlstatpy/helpsphinx/c_metric/roc.html#aire-sous-la-courbe',
"auto-keras": "https://github.com/jhfjhfj1/autokeras",
'autofmt_xdate': 'http://matplotlib.org/api/figure_api.html#matplotlib.figure.Figure.autofmt_xdate',
'Axes': 'http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes',
"_benchamrks": 'http://www.xavierdupre.fr/app/_benchmarks/helpsphinx/index.html',
"basemap": 'https://matplotlib.org/basemap/',
"blockchain": 'https://fr.wikipedia.org/wiki/Blockchain',
"bokeh": 'https://fr.wikipedia.org/wiki/Bokeh',
'botadi': 'http://www.xavierdupre.fr/app/botadi/helpsphinx/index.html',
'bqplot': 'https://github.com/bloomberg/bqplot',
'branching': 'https://en.wikipedia.org/wiki/Branch_(computer_science)',
"Bresenham": 'https://fr.wikipedia.org/wiki/Algorithme_de_trac%C3%A9_de_segment_de_Bresenham',
"C++": 'https://fr.wikipedia.org/wiki/C%2B%2B',
"C#": 'https://fr.wikipedia.org/wiki/C_sharp',
"cartopy": "http://scitools.org.uk/cartopy/",
"catboost": "https://github.com/catboost/catboost",
"cartopy": "https://scitools.org.uk/cartopy/docs/latest/",
"CNIL": 'https://www.cnil.fr/',
"CNTK": 'https://www.microsoft.com/en-us/research/product/cognitive-toolkit/',
'coneqp': 'http://abel.ee.ucla.edu/cvxopt/userguide/coneprog.html?highlight=coneqp#cvxopt.solvers.coneqp',
"cpyquickhelper": 'https://github.com/sdpython/cpyquickhelper/',
"CPU": "https://en.wikipedia.org/wiki/Central_processing_unit",
"csharpy": 'http://www.xavierdupre.fr/app/csharpy/helpsphinx/index.html',
"csharpyml": 'http://www.xavierdupre.fr/app/csharpyml/helpsphinx/index.html',
'cudf': 'https://github.com/rapidsai/cudf',
'cuml': 'https://github.com/rapidsai/cuml',
"cvxopt": 'https://cvxopt.org/',
"Cython": 'http://cython.org/',
"cython": 'http://cython.org/',
"dask": 'http://dask.pydata.org/en/latest/',
"DGML": 'https://datascience.etalab.studio/dgml/',
'Debian 9': 'https://fr.wikipedia.org/wiki/Debian',
'deep learning': 'https://en.wikipedia.org/wiki/Deep_learning',
'deeponnxcustom': 'http://www.xavierdupre.fr/app/deeponnxcustom/helpsphinx/index.html',
'dirty-cat': 'https://dirty-cat.github.io/stable/',
"dlib": 'http://dlib.net/',
'docker': 'https://en.wikipedia.org/wiki/Docker_(software)',
'dtreeviz': 'https://github.com/parrt/dtreeviz',
'Elysees': 'http://www.elysee.fr/',
"ensae_teaching_cs": 'http://www.xavierdupre.fr/app/ensae_teaching_cs/helpsphinx/index.html',
"ensae_teaching_dl": 'http://www.xavierdupre.fr/app/ensae_teaching_dl/helpsphinx/index.html',
"ENSAE": 'http://www.ensae.fr/',
'Excel': 'https://fr.wikipedia.org/wiki/Microsoft_Excel',
'expressions régulières': 'https://fr.wikipedia.org/wiki/Expression_r%C3%A9guli%C3%A8re',
"falcon": 'https://falconframework.org/',
"FastText": 'https://fasttext.cc/',
'flake8': 'http://flake8.pycqa.org/en/latest/',
"Flask": 'http://flask.pocoo.org/',
"flask": 'http://flask.pocoo.org/',
"folium": 'https://folium.readthedocs.io/en/latest/',
"fortran": 'https://fr.wikipedia.org/wiki/Fortran',
'FGPA': 'https://en.wikipedia.org/wiki/Field-programmable_gate_array',
"Freakeconometrics": "https://freakonometrics.hypotheses.org/",
'gensim': 'https://radimrehurek.com/gensim/',
'GEOFLA': 'http://professionnels.ign.fr/geofla',
"geopandas": 'http://geopandas.org/',
"GIL": 'https://wiki.python.org/moin/GlobalInterpreterLock',
"github/sdpython": "https://github.com/sdpython",
"gmail": 'https://fr.wikipedia.org/wiki/Gmail',
"GPU": 'https://en.wikipedia.org/wiki/Graphics_processing_unit',
'h2o': 'https://h2o-release.s3.amazonaws.com/h2o/rel-slater/9/docs-website/h2o-py/docs/index.html',
"javascript": 'https://fr.wikipedia.org/wiki/JavaScript',
"Jinja2": 'http://jinja.pocoo.org/docs/',
'joblib': 'https://joblib.readthedocs.io/en/latest/',
"Julia": 'https://julialang.org/',
'ImageNet': 'https://www.image-net.org/',
"Kaggle": 'https://www.kaggle.com/',
"keras": 'https://keras.io/',
"keyring": 'https://github.com/jaraco/keyring',
'kubernetes': 'https://kubernetes.io/',
"Lasso": 'https://fr.wikipedia.org/wiki/Lasso_(statistiques)',
"lecture_citation": "http://www.xavierdupre.fr/app/lecture_citation/helpsphinx/index.html",
'legend': 'http://matplotlib.org/api/axes_api.html#matplotlib.axes.Axes.legend',
"lightgbm": "https://github.com/Microsoft/LightGBM/",
"lightmlboard": 'http://www.xavierdupre.fr/app/lightmlboard/helpsphinx/index.html',
"lightmlrestapi": 'http://www.xavierdupre.fr/app/lightmlrestapi/helpsphinx/index.html',
"Linux": 'https://fr.wikipedia.org/wiki/Linux',
"linux": 'https://fr.wikipedia.org/wiki/Linux',
"machine learning": 'https://fr.wikipedia.org/wiki/Apprentissage_automatique',
"MacOS": "https://fr.wikipedia.org/wiki/MacOS",
"mako": 'http://www.makotemplates.org/',
"manydataapi": 'http://www.xavierdupre.fr/app/manydataapi/helpsphinx/index.html',
'mars': 'https://github.com/mars-project/mars',
"mathenjeu": 'http://www.xavierdupre.fr/app/mathenjeu/helpsphinx/index.html',
"matrice de confusion": "https://fr.wikipedia.org/wiki/Matrice_de_confusion",
"Microsoft": 'https://fr.wikipedia.org/wiki/Microsoft',
"miniconda": 'https://conda.io/miniconda.html',
"mlinsights": 'http://www.xavierdupre.fr/app/mlinsights/helpsphinx/index.html',
"mloptonnx": 'https://github.com/sdpython/mloptonnx/',
"mlprodict": 'http://www.xavierdupre.fr/app/mlprodict/helpsphinx/index.html',
'ML.net': 'https://github.com/dotnet/machinelearning',
"MPI": 'https://en.wikipedia.org/wiki/Message_Passing_Interface',
'networkx': 'https://networkx.github.io/',
"moviepy": "https://zulko.github.io/moviepy/",
'nltk': 'https://www.nltk.org/',
"notebook": 'http://jupyter.org/',
"Notepad++": "https://notepad-plus-plus.org/",
"numba": "https://numba.pydata.org/",
'onnxcustom': 'http://www.xavierdupre.fr/app/onnxcustom/helpsphinx/index.html',
"open source": 'http://fr.wikipedia.org/wiki/Open_source',
"OpenCV": 'https://opencv.org/',
"opencv": 'https://opencv.org/',
"OpenMP": 'https://en.wikipedia.org/wiki/OpenMP',
"openmp": 'https://en.wikipedia.org/wiki/OpenMP',
"OpenStreetMap": 'https://www.openstreetmap.org/',
"onnx": "https://github.com/onnx/onnx",
"ONNX": "https://onnx.ai/",
'onnx-array-api': 'http://www.xavierdupre.fr/app/onnx-array-api/helpsphinx/index.html',
'onnx-extended': 'http://www.xavierdupre.fr/app/onnx-extended/helpsphinx/index.html',
'onnxortext': 'http://www.xavierdupre.fr/app/onnxortext/helpsphinx/index.html',
"OSM": 'https://www.openstreetmap.org/',
"OS/X": 'https://fr.wikipedia.org/wiki/MacOS',
'pandas_streaming': 'http://www.xavierdupre.fr/app/pandas_streaming/helpsphinx/index.html',
'pathos': 'https://github.com/uqfoundation/pathos',
"PDF": 'https://fr.wikipedia.org/wiki/Portable_Document_Format',
"pep8": 'https://www.python.org/dev/peps/pep-0008/?',
"PGCD": 'https://fr.wikipedia.org/wiki/Plus_grand_commun_diviseur',
"pickle": 'https://docs.python.org/3/library/pickle.html',
'PIG': 'https://pig.apache.org/',
'pip': 'https://pip.pypa.io/en/stable/',
"PPCM": 'https://fr.wikipedia.org/wiki/Plus_petit_commun_multiple',
"PTVS": 'https://microsoft.github.io/PTVS/',
'pypi': 'https://pypi.org/',
"pybind11": 'https://github.com/pybind/pybind11',
"PyCharm": 'https://www.jetbrains.com/pycharm/',
"pyecharts": 'https://github.com/pyecharts/pyecharts',
"pyenbc": 'http://www.xavierdupre.fr/app/pyenbc/helpsphinx/',
"pyensae": 'http://www.xavierdupre.fr/app/pyensae/helpsphinx/',
"pymmails": 'http://www.xavierdupre.fr/app/pymmails/helpsphinx/',
"pygame": 'https://www.pygame.org/',
'pypi': 'https://pypi.org/',
"pyproj": 'https://github.com/jswhit/pyproj',
'pystrat2048': 'http://www.xavierdupre.fr/app/pystrat2048/helpsphinx/index.html',
'Python 2A ENSAE 2016': 'https://competitions.codalab.org/competitions/13431',
'pythran': 'https://pythran.readthedocs.io/en/latest/',
"pytorch": 'http://pytorch.org/',
"R": 'https://www.r-project.org/',
'rapids': 'https://rapids.ai/index.html',
"RaspberryPI": 'https://www.raspberrypi.org/',
"re2": 'https://github.com/google/re2',
"requests": 'http://docs.python-requests.org/en/latest/',
'REST API': "https://en.wikipedia.org/wiki/Representational_state_transfer",
"ROC": 'http://www.xavierdupre.fr/app/mlstatpy/helpsphinx/c_metric/roc.html',
"RSA": 'https://fr.wikipedia.org/wiki/Chiffrement_RSA',
"Rust": "https://www.rust-lang.org/",
"scikit-plot": 'https://scikit-plot.readthedocs.io/en/stable/',
"Scikit.ML": 'https://github.com/xadupre/machinelearningext',
"SciTE": 'http://www.scintilla.org/SciTE.html',
"Scipy": 'https://www.scipy.org/',
'scraping': 'https://fr.wikipedia.org/wiki/Web_scraping',
'sdpython': 'https://github.com/sdpython',
"seaborn": 'https://seaborn.pydata.org/',
'selenium': 'https://selenium-python.readthedocs.io/',
'spacy': 'https://spacy.io/',
"spark": 'https://spark.apache.org/',
"Spark": 'https://spark.apache.org/',
"sparkouille": 'http://www.xavierdupre.fr/app/sparkouille/helpsphinx/index.html',
"Spyder": 'https://github.com/spyder-ide/spyder',
'SQL': 'https://fr.wikipedia.org/wiki/Structured_Query_Language',
"statsmodels": 'https://www.statsmodels.org/stable/index.html',
'streamlit': 'https://streamlit.io/docs/',
'td2a_plotting': 'http://www.xavierdupre.fr/app/td2a_plotting/helpsphinx/index.html',
'td3a_cpp': 'http://www.xavierdupre.fr/app/td3a_cpp/helpsphinx/index.html',
'td3a_cpp_deep': 'http://www.xavierdupre.fr/app/td3a_cpp_deep/helpsphinx/index.html',
"teachpyx": 'http://www.xavierdupre.fr/app/teachpyx/helpsphinx/',
"tensorFlow": 'https://www.tensorflow.org/',
"TensorFlow": 'https://www.tensorflow.org/',
"tensorflow": 'https://www.tensorflow.org/',
"test unitaire": 'https://fr.wikipedia.org/wiki/Test_unitaire',
"tests unitaires": 'https://fr.wikipedia.org/wiki/Test_unitaire',
"theano": 'http://deeplearning.net/software/theano/',
'to_clipboard': 'to_clipboard <http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.to_clipboard.html',
"tkinter": 'https://docs.python.org/3/library/tkinter.html',
'The Basics of Cython': 'http://docs.cython.org/src/tutorial/cython_tutorial.html',
"thorpy": 'http://www.thorpy.org/',
"TSP": 'https://fr.wikipedia.org/wiki/Probl%C3%A8me_du_voyageur_de_commerce',
"UCI": 'https://archive.ics.uci.edu/ml/datasets.html',
"Archived: Unofficial Windows Binaries for Python Extension Packages": 'https://www.lfd.uci.edu/~gohlke/pythonlibs/',
"utf-8": "https://fr.wikipedia.org/wiki/UTF-8",
"Visual Studio Code": "https://code.visualstudio.com/",
"Windows": 'https://fr.wikipedia.org/wiki/Microsoft_Windows',
'xarray': 'http://xarray.pydata.org/en/stable/',
"xgboost": "https://xgboost.readthedocs.io/en/latest/",
"XGBoost": "https://xgboost.readthedocs.io/en/latest/",
"XML": "https://fr.wikipedia.org/wiki/Extensible_Markup_Language",
"woob": "https://woob.tech/",
})