As far as I know, no. But you could simply truncate the iris dataset for binary classification, e.g.,
from sklearn import datasets iris = datasets.load_iris() X = iris.data[:100] y = iris.target[:100] Best, Sebastian > On Dec 3, 2017, at 3:54 PM, Peng Yu <pengyu...@gmail.com> wrote: > > Hi, iris is a three-class dataset. Is there a dataset in sklearn that > is suitable for binary classification? Thanks. > > -- > Regards, > Peng > _______________________________________________ > scikit-learn mailing list > scikit-learn@python.org > https://mail.python.org/mailman/listinfo/scikit-learn _______________________________________________ scikit-learn mailing list scikit-learn@python.org https://mail.python.org/mailman/listinfo/scikit-learn