ImportError: cannot import name ‘_get_column_indices’ from ‘sklearn.utils’
I am getting an import Error when trying to import imblearn.over_sampling for RandomOverSampler. I believe the issue is not with my code but with the libraries clashing, I’m not sure though.
‘Pipeline’ object has no attribute ‘_check_fit_params’
from imblearn.over_sampling import SMOTE from imblearn.under_sampling import RandomUnderSampler from imblearn.pipeline import Pipeline # Define features and target X = df.drop(‘infected’, axis=1) y = df[‘infected’] # Split the data into training and testing sets X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42) # Define the resampling strategy over = SMOTE(sampling_strategy=0.5) # Oversample the minority class […]