Location: Epping, NSW 2121, Australia
Phone: (+61) 416 509 486
Email: [email protected]
Portfolio: portfolio-website-ryan-nguyen.vercel.app
GitHub: github.com/ryancodingg
This file contains hidden or 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
#Split the data into training and test sets using Stratified splitting | |
X = df.drop(columns=['is_fraud']) | |
y = df['is_fraud'] | |
X_train, X_test, y_train, y_test = train_test_split(X, y, stratify=y, test_size = 0.3, random_state = 42) |