-
-
Save amankharwal/5135af5247a9cc18da4daadfb49ddf45 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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