Skip to content

Instantly share code, notes, and snippets.

@rdisipio
Created November 5, 2022 14:20
Show Gist options
  • Save rdisipio/2311bc68466b8ead849061061d1655b1 to your computer and use it in GitHub Desktop.
Save rdisipio/2311bc68466b8ead849061061d1655b1 to your computer and use it in GitHub Desktop.
from sklearn.datasets import make_classification
n_features = 20
feature_names = [f"x_{n}" for n in range(n_features)]
class_names = ['0', '1']
X, y = make_classification(n_samples=1000,
n_features=n_features, n_informative=5,
n_redundant=5, n_repeated=0,
n_classes=2, n_clusters_per_class=1,
class_sep=1.0,
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment