Skip to content

Commit 214432f

Browse files
committed
fix issues
1 parent e8ec9a2 commit 214432f

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

_doc/articles/2025/2025-03-01-route2025.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,17 @@ Séance 2 (7/2)
4848
==============
4949

5050
* arbre de régression, de classification
51-
:ref:`RandomForest, Overfitting <nbl-practice-ml-ml_a_tree_overfitting>`
51+
:ref:`RandomForest, Overfitting <nbl-practice-ml-ml_a_tree_overfitting>`
5252
* Gradient Boosting, :ref:`Gradient Boosting et Learning Rate avec les Random Forest <nbl-practice-ml-gradient_boosting>`
5353
* Régression linéaire et contraintes sur les coefficients,
5454
`Ridge <https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Ridge.html>`_,
5555
`Lasso <https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html>`_,
5656
`ElasticNet <https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.ElasticNet.html>`_,
5757
:ref:`Ridge, Lasso, mathématiques <nbl-practice-ml-ridge_lasso>`
58+
* paramètres et hyper paramètres, :ref:`Sélection des hyper-paramètres <nbl-practice-ml-winesr_knn_hyper>`,
59+
:class:`sklearn.model_selection.GridSearchCV`
60+
* `Data challenge - Algorithme machine learning qui permet de prédire la gravité d’un accident de la rout
61+
<https://www.data.gouv.fr/fr/reuses/data-challenge-algorithme-machine-learning-qui-permet-de-predire-la-gravite-dun-accident-de-la-route/>`_
5862

5963
Séance 3 (14/2)
6064
===============

_doc/articles/2025/2025-04-01-route2025.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _l-feuille-route-2025-2:
22

3-
==================================
4-
2025-04-01 : feuille de route 2025
5-
==================================
3+
==========================================
4+
2025-04-01 : feuille de route 2025 - avril
5+
==========================================
66

77
site web : `sdpython.github.io <https://sdpython.github.io/>`_
88

_doc/practice/ml/gradient_boosting.ipynb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1438,11 +1438,11 @@
14381438
" color = \"b\"\n",
14391439
" else:\n",
14401440
" y_ = sum(\n",
1441-
" [model.init_.predict(X_test)]\n",
1442-
" + [\n",
1441+
" [model.init_.predict(X_test),\n",
1442+
" *[\n",
14431443
" model.estimators_[k, 0].predict(X_test) * model.learning_rate\n",
14441444
" for k in range(0, i)\n",
1445-
" ]\n",
1445+
" ]]\n",
14461446
" )\n",
14471447
" color = \"r\"\n",
14481448
" df = DataFrame({\"X\": X_test[ind].ravel(), \"y^\": y_[ind].ravel()})\n",
@@ -6111,4 +6111,4 @@
61116111
},
61126112
"nbformat": 4,
61136113
"nbformat_minor": 2
6114-
}
6114+
}

teachpyx/practice/rues_paris.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def get_data(
125125

126126

127127
def graph_degree(
128-
edges: List[Tuple[int, int, int, Tuple[float, float], Tuple[float, float], float]]
128+
edges: List[Tuple[int, int, int, Tuple[float, float], Tuple[float, float], float]],
129129
) -> Dict[Tuple[int, int], int]:
130130
"""
131131
Calcul le degré de chaque noeud.
@@ -367,7 +367,7 @@ def eulerien_extension(
367367

368368

369369
def connected_components(
370-
edges: List[Tuple[int, int, int, Tuple[float, float], Tuple[float, float], float]]
370+
edges: List[Tuple[int, int, int, Tuple[float, float], Tuple[float, float], float]],
371371
) -> Dict[int, int]:
372372
"""
373373
Computes the connected components.

0 commit comments

Comments
 (0)