From: Jérôme Benoit Date: Tue, 13 Nov 2018 21:09:27 +0000 (+0100) Subject: Add TP1 exo2 question 2 implementation. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=d5d653ea02f22bd8ca9fa8e853a843cd55a9805a;p=TP_AA.git Add TP1 exo2 question 2 implementation. Signed-off-by: Jérôme Benoit --- diff --git a/TP1/exo2/TP1prog2.py b/TP1/exo2/TP1prog2.py index 7808974..65768d2 100755 --- a/TP1/exo2/TP1prog2.py +++ b/TP1/exo2/TP1prog2.py @@ -8,8 +8,6 @@ irisData = load_iris() X = irisData.data Y = irisData.target -colors = ["red", "green", "blue"] - nb_voisins = 15 clf = neighbors.KNeighborsClassifier(nb_voisins) clf.fit(X, Y)