Demo entry 6684295

py

   

Submitted by anonymous on Dec 15, 2017 at 03:15
Language: Python 3. Code size: 162 Bytes.

from sklearn import datasets
import numpy as np

iris = datasets.load_iris()
X = iris.data[:, [2, 3]]
y = iris.target

print('Class labels:', np.unique(y))

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).