Skip to content

Instantly share code, notes, and snippets.

@amankharwal
Created April 25, 2021 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amankharwal/5135af5247a9cc18da4daadfb49ddf45 to your computer and use it in GitHub Desktop.
Save amankharwal/5135af5247a9cc18da4daadfb49ddf45 to your computer and use it in GitHub Desktop.
from sklearn.datasets import make_classification
nb_samples = 1000
weights = (0.95, 0.05)
x, y = make_classification(n_samples=nb_samples, n_features=2, n_redundant=0, weights=weights, random_state=1000)
print(x[y==0].shape)
print(x[y==1].shape)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment