knn : suppression --proxy matplotlib, correction titre H1
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
# Implémentation de l'algorithme des K plus proches voisins
|
||||||
|
|
||||||
### 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:
|
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 :
|
Pour commencer, il faut installer `matplotlib` si ce n'est pas déjà fait. Cela se fait généralement via pip :
|
||||||
|
|
||||||
```python
|
```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` :
|
Ensuite, pour utiliser `matplotlib`, on commence par importer le module `pyplot`, souvent sous l'alias `plt` :
|
||||||
|
|||||||
Reference in New Issue
Block a user