python - n_classes * n_clusters_per_class must be smaller or equal 2 in make_classification function -
i generating datas on python command line :
x, y = sklearn.datasets.make_classification(n_classes=3 ,n_features=20, n_redundant=0, n_informative=1, n_clusters_per_class=1) but error , can't understand avoid...:
valueerror: n_classes * n_clusters_per_class must smaller or equal 2 ** n_informative
could please?
the doc string says clusters placed on corners of hypercube. hypercube n=1 unit line segment. has 2 corner points. 2 clusters can placed. algorithmic constraint
Comments
Post a Comment