Skip to content

Instantly share code, notes, and snippets.

@sunilkumardash9
Created January 30, 2022 12:13
Show Gist options
  • Save sunilkumardash9/012877fa7edb089848b754dc538df472 to your computer and use it in GitHub Desktop.
Save sunilkumardash9/012877fa7edb089848b754dc538df472 to your computer and use it in GitHub Desktop.
from sklearn.datasets import make_classification
X,y = make_classification(n_features=4)
#spliting train,test data
from sklearn.model_selection import train_test_split
X_tr,X_te,y_tr,y_te = train_test_split(X,y,test_size=0.15)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment