From b64f8741c68a49979c46ecb5b5473ea882ad4fd7 Mon Sep 17 00:00:00 2001 From: VANDEPOELE Enzo Date: Thu, 12 May 2022 09:39:31 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9pot=20:=20kPlusProches?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kplusproche.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/kplusproche.py b/kplusproche.py index a5b6fca..b10314a 100644 --- a/kplusproche.py +++ b/kplusproche.py @@ -11,5 +11,4 @@ def kPlusProches(k,donnees_point,temp_jour): d = distance(temp_jour[i],donnees_point) voisins.append((d, i)) voisins.sort() - return [voisins[i][1] for i in range(k)] - + return [voisins[i][1] for i in range(k)] \ No newline at end of file