Skip to content

Commit 3032621

Browse files
authored
style, split CI (#87)
* style * fix two notebooks * add lines * add read_csv_cached * ise tqdm * add tqdm * fix * tqdm * fix * fix * split cit * rename * doc * fix notrebooks * fix
1 parent be474b3 commit 3032621

Some content is hidden

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

48 files changed

+11226
-1862
lines changed

.github/workflows/ci-example.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci-examples
2+
3+
on:
4+
push:
5+
pull_request:
6+
types:
7+
- closed
8+
branches:
9+
- main
10+
11+
jobs:
12+
run:
13+
name: ci ${{ matrix.os }}-${{ matrix.python }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
python: ['3.12']
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python }}
25+
26+
- name: Install requirements
27+
run: python -m pip install -r requirements.txt
28+
29+
- name: Install requirements dev
30+
run: python -m pip install -r requirements-dev.txt
31+
32+
- name: Cache pip
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.cache/pip
36+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
37+
restore-keys: |
38+
${{ runner.os }}-pip-
39+
${{ runner.os }}-
40+
41+
- name: pip freeze
42+
run: python -m pip freeze
43+
44+
- name: run tests examples
45+
run: |
46+
pip install pytest
47+
PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests/ut_xrun_doc/test_documentation_examples.py -v

.github/workflows/ci-notebook.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: ci-notebooks
2+
3+
on:
4+
push:
5+
pull_request:
6+
types:
7+
- closed
8+
branches:
9+
- main
10+
11+
jobs:
12+
run:
13+
name: ci ${{ matrix.os }}-${{ matrix.python }}
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
python: ['3.12']
19+
steps:
20+
- uses: actions/checkout@v3
21+
22+
- uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python }}
25+
26+
- name: Install requirements
27+
run: python -m pip install -r requirements.txt
28+
29+
- name: Install requirements dev
30+
run: python -m pip install -r requirements-dev.txt
31+
32+
- name: Cache pip
33+
uses: actions/cache@v4
34+
with:
35+
path: ~/.cache/pip
36+
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
37+
restore-keys: |
38+
${{ runner.os }}-pip-
39+
${{ runner.os }}-
40+
41+
- name: pip freeze
42+
run: python -m pip freeze
43+
44+
- name: run tests notebooks
45+
run: |
46+
pip install pytest
47+
PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests/ut_xrun_doc/test_documentation_notebook.py -v

.github/workflows/ci.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: ci-tests
22

33
on:
44
push:
@@ -10,7 +10,7 @@ on:
1010

1111
jobs:
1212
run:
13-
name: to-${{ matrix.torch }}-tr-${{ matrix.transformers }}-ci ${{ matrix.os }}-${{ matrix.python }}
13+
name: ci ${{ matrix.os }}-${{ matrix.python }}
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
@@ -45,9 +45,3 @@ jobs:
4545
run: |
4646
pip install pytest
4747
PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests --ignore-glob=**pygame*.py --ignore _unittests/ut_xrun_doc/test_documentation_examples.py --ignore _unittests/ut_xrun_doc/test_documentation_notebook.py
48-
49-
- name: run tests examples
50-
run: PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests/ut_xrun_doc/test_documentation_examples.py -v
51-
52-
- name: run tests notebooks
53-
run: PYTHONPATH=. UNITTEST_GOING=1 pytest --durations=10 _unittests/ut_xrun_doc/test_documentation_notebook.py -v

_doc/api/tools/index.rst

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1-
21
teachpyx.tools
32
==============
43

5-
64
.. toctree::
75
:maxdepth: 1
86
:caption: submodules
97

10-
118
display/index
129

1310

1411
.. toctree::
1512
:maxdepth: 1
1613
:caption: modules
1714

18-
1915
data_helper
2016
graphviz_helper
2117
helpers
2218
profiling
23-
19+
pandas
2420

2521
.. automodule:: teachpyx.tools
2622
:members:

_doc/api/tools/pandas.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
teachpyx.tools.pandas
3+
=====================
4+
5+
.. automodule:: teachpyx.tools.pandas
6+
:members:
7+
:no-undoc-members:

_doc/articles/2024/2024-03-01-route2024.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Séance 2 (2/2)
2828

2929
* arbre de régression, arbre de classification
3030
* random forest, boosting trees
31-
(:epkg:`xgboost`, :epkg:`lightgtbm`, :epkg:`catboost`),
31+
(:epkg:`xgboost`, :epkg:`lightgbm`, :epkg:`catboost`),
3232
:ref:`RandomForest, Overfitting <nbl-practice-ml-ml_a_tree_overfitting>`
3333
* Gradient Boosting, :ref:`Gradient Boosting et Learning Rate avec les Random Forest <nbl-practice-ml-gradient_boosting>`
3434
* Régression Linéaire et contraintes sur les coefficients,
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
.. _l-feuille-route-2026:
2+
3+
=========================================
4+
2026-03-15 : feuille de route 2025 - mars
5+
=========================================
6+
7+
site web : `sdpython.github.io <https://sdpython.github.io/>`_
8+
9+
`Apprendre la programmation avec Python
10+
<https://sdpython.github.io/doc/teachpyx/dev/>`_
11+
12+
Autres sites :
13+
14+
* Python pour la data science <https://pythonds.linogaliana.fr/>`_ (Lino Galiana - ENSAE)
15+
16+
Fonctions utiles:
17+
18+
* :func:`teachpyx.tools.pandas.read_csv_cached`
19+
20+
Séance 1 (6/2)
21+
==============
22+
23+
* rappels sur la régression, classification, clustering, ACP, prétraitements
24+
* train test, validation croisée
25+
* rappels sur l'apprentissage d'un arbre de régression
26+
27+
*présentation de modules*
28+
29+
* données : :epkg:`pandas`
30+
* graphes : :epkg:`matplotlib`, :epkg:`seaborn`, :epkg:`bokeh`, :epkg:`altair`
31+
* cartes : :epkg:`geopandas`, :epkg:`folium`
32+
* machine learning : :epkg:`scikit-learn`, :epkg:`skrub`, :epkg:`skore`, :epkg:`imbalanced-learn`, :epkg:`hazardous`, :epkg:`fairlearn`,
33+
:epkg:`xgboost`, :epkg:`lightgbm`, :epkg:`catboost`
34+
* deep learning : :epkg:`pytorch`, :epkg:`transformers`, :epkg:`diffusers` et aussi :epkg:`HuggingFace Hub`
35+
36+
*demain*
37+
38+
* utilisation de ChatGPT, Gemini (et autres...), retour d'expérience
39+
* et ensuite...
40+
41+
Séance 2 (13/2)
42+
===============
43+
44+
* tests unitaires
45+
* pipelines : pourquoi en faire
46+
47+
Séance 3 (27/2)
48+
===============
49+
50+
Séance 4 (6/3)
51+
==============
52+
53+
Séance 5 (13/3)
54+
===============
55+
56+
Séance 6 (20/3)
57+
===============
58+
59+
Evaluation
60+
==========
61+
62+
* `https://defis.data.gouv.fr/ <https://defis.data.gouv.fr/>`_
63+
* le projet doit inclure au moins un graphe
64+
*Partial Dependence* ou *Permutation Importance* (voir liens ci-dessus)
65+
* soutenance ?
66+
67+
Quelques jeux de données
68+
========================
69+
70+
* `Parcoursup 2025 - vœux de poursuite d'études et de réorientation dans l'enseignement supérieur et réponses des établissements
71+
<https://www.data.gouv.fr/datasets/parcoursup-2025-voeux-de-poursuite-detudes-et-de-reorientation-dans-lenseignement-superieur-et-reponses-des-etablissements>`_
72+
* `Patrimoine immobilier des opérateurs de l’Enseignement supérieur
73+
<https://www.data.gouv.fr/datasets/patrimoine-immobilier-des-operateurs-de-lenseignement-superieur>`_
74+
* `Prix des carburants en France - Flux quotidien
75+
<https://www.data.gouv.fr/datasets/prix-des-carburants-en-france-flux-quotidien-1>`_
76+
* `Prix des carburants en France - Flux instantané - v2
77+
<https://www.data.gouv.fr/datasets/prix-des-carburants-en-france-flux-instantane-v2-amelioree>`_
78+
* `Séries sur les surfaces, rendements, production céréales
79+
<https://visionet.franceagrimer.fr/Pages/SeriesChronologiques.aspx?menuurl=SeriesChronologiques/productions%20vegetales/grandes%20cultures/surfaces,productions,rendements>`_
80+
* `Effectifs d'étudiants inscrits dans les établissements et les formations de l'enseignement supérieur - détail par établissements
81+
<https://www.data.gouv.fr/datasets/effectifs-detudiants-inscrits-dans-les-etablissements-et-les-formations-de-lenseignement-superieur-detail-par-etablissements>`_
82+
* `Résultats du contrôle sanitaire de l'eau distribuée commune par commune
83+
<https://www.data.gouv.fr/datasets/resultats-du-controle-sanitaire-de-leau-distribuee-commune-par-commune>`_
84+
* `Résultats du contrôle sanitaire de l'eau du robinet <https://www.data.gouv.fr/datasets/resultats-du-controle-sanitaire-de-leau-du-robinet>`_
85+
* `Données climatologiques de base - horaires <https://www.data.gouv.fr/datasets/donnees-climatologiques-de-base-horaires>`_
86+
* `Données climatologiques de base - mensuelles <https://www.data.gouv.fr/datasets/donnees-climatologiques-de-base-mensuelles>`_
87+

_doc/articles/index.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ Collections d'articles périssables
55

66
Ou *blog*.
77

8+
.. toctree::
9+
:caption: 2026
10+
:maxdepth: 1
11+
12+
2026/2026-03-15-route2026-ml
13+
814
.. toctree::
915
:caption: 2025
1016
:maxdepth: 1

0 commit comments

Comments
 (0)