knn : suppression --proxy matplotlib, correction titre H1

This commit is contained in:
2026-06-02 08:51:53 +02:00
parent 47a95d16ce
commit e5d26eaa8d

View File

@@ -1,3 +1,5 @@
# Implémentation de l'algorithme des K plus proches voisins
### Implémentation de l'algorithme des K plus proches voisins.
On pourrait essayer de penser à un algorithme simple pour pouvoir implémenter l'algorithme knn en python:
@@ -29,7 +31,7 @@ Nous allons utiliser la bibliothèque `Matplotlib`
Pour commencer, il faut installer `matplotlib` si ce n'est pas déjà fait. Cela se fait généralement via pip :
```python
pip install --upgrade --proxy=172.16.0.253:3128 matplotlib
pip install --upgrade matplotlib
```
Ensuite, pour utiliser `matplotlib`, on commence par importer le module `pyplot`, souvent sous l'alias `plt` :