Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- X_resampled, y_resampled = SMOTE(kind='regular').fit_sample(train_clone, y_train)
- X_resampled = pd.DataFrame(data=X_resampled, columns=train.columns[:-1])
- y_resampled = pd.Series(y_resampled)
- print("Processed by SMOTE q2norm and target shapes", X_resampled.shape, y_resampled.shape)
- X_resampled_new_points = X_resampled.loc[~X_resampled.index.isin(train.index)].reset_index(drop=True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement