Skip to content

Commit 960d4dd

Browse files
Merge pull request #2720 from avinashkranjan/deepsource-transform-8fcf07ae
format code with autopep8
2 parents 804d2b4 + 1369f1a commit 960d4dd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Fraud Detection/fraud_detection.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
X = scaler.fit_transform(X)
1919

2020
# Split the data into training and testing sets
21-
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
21+
X_train, X_test, y_train, y_test = train_test_split(
22+
X, y, test_size=0.2, random_state=42)
2223

2324
# Handle class imbalance using SMOTE
2425
smote = SMOTE(sampling_strategy='auto', random_state=42)

0 commit comments

Comments
 (0)