Skip to content

Instantly share code, notes, and snippets.

@sazio
Created August 17, 2020 22:25
Show Gist options
  • Save sazio/560d2e3ea48f16619652327bb0c6607a to your computer and use it in GitHub Desktop.
Save sazio/560d2e3ea48f16619652327bb0c6607a to your computer and use it in GitHub Desktop.
# classification dataset
from sklearn.datasets import make_classification
# define dataset
X_clf, y_clf = make_classification(n_samples=1000, n_features=8, n_informative=3, n_redundant=5, random_state=1)
# summarize the dataset
print(X_clf.shape, y_clf.shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment