scikit-learn Cookbook(Second Edition)
上QQ阅读APP看书,第一时间看更新

Getting ready

Back to the iris example, we now store the first two features (columns) of the observations as X and the target as y, a convention in the machine learning community:

X = iris.data[:, :2]  
y = iris.target