Add the first part of exo1 : show iris dateset.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 9 Nov 2018 08:42:52 +0000 (09:42 +0100)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 9 Nov 2018 08:42:52 +0000 (09:42 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
TP1/exo1/iris1.py [new file with mode: 0755]

diff --git a/TP1/exo1/iris1.py b/TP1/exo1/iris1.py
new file mode 100755 (executable)
index 0000000..45578fb
--- /dev/null
@@ -0,0 +1,10 @@
+#!/usr/bin/env python3
+
+from sklearn.datasets import load_iris # les données iris sont chargées
+irisData=load_iris()
+
+print(irisData.data)
+print(irisData.target)
+print(irisData.target_names)
+print(irisData.feature_names)
+print(irisData.DESCR)