text_plain_output_1.png image_output_1.png
from sklearn.linear_model import LogisticRegression

from sklearn.pipeline import Pipeline

pipeline = Pipeline([('model', LogisticRegression(solver='liblinear'))])
pipeline.fit(X_oversampled, y_oversampled)