X-Git-Url: https://git.piment-noir.org/?p=TP_AA.git;a=blobdiff_plain;f=TP1%2Fexo1%2Firis4.py;fp=TP1%2Fexo1%2Firis4.py;h=ad61e2d2b6502f1a3d9e3bf3550462967e842c6e;hp=66465617c2dc63bf4f5e51471b3d7a1dea994422;hb=5b0cb811ca7760eafcb3bae2de43ccb57690e848;hpb=69b638407a0fb3819cfe0f94577205eddbfd77c4 diff --git a/TP1/exo1/iris4.py b/TP1/exo1/iris4.py index 6646561..ad61e2d 100755 --- a/TP1/exo1/iris4.py +++ b/TP1/exo1/iris4.py @@ -9,9 +9,9 @@ X = irisData.data Y = irisData.target x = 0 y = 1 -Y == 0 -X[Y == 0] -X[Y == 0][:, x] +print(Y == 0) +print(X[Y == 0]) +print(X[Y == 0][:, x]) pl.scatter(X[Y == 0][:, x], X[Y == 0][:, y], color="red", label=irisData.target_names[0]) pl.scatter(X[Y == 1][:, x], X[Y == 1][:, y],