Comments (2)
This is odd because imblearn is already installed on Google Colab as it is a related project to sklearn. When I run this code below it runs without error. Further, Google Colab has the newest version of imblearn installed (check this with import imblearn and then imblearn.version you should see version 0.10.1. Instead of uninstalling and reinstalling packages, consider creating a new notebook on Google Colab cloud notebook and see if the error persists. A similar error was found relating to the relation between sci-kit learn version causing issues with imblearn (see this issue), but it is unlikely that is the case here.
# code I ran from a new notebook on Google Colab that ran witrhout ImportError
import numpy as np
import pandas as pd
from imblearn.over_sampling import ADASYN
X_train = pd.DataFrame(np.random.rand(100, 3), columns=['f1', 'f2', 'f3'])
y_train = pd.Series(np.random.randint(2, size=100))
adasyn = ADASYN(random_state=42)
X_train_resampled, y_train_resampled = adasyn.fit_resample(X_train, y_train)
X_train_resampled_df = pd.DataFrame(X_train_resampled, columns=X_train.columns)
y_train_resampled_df = pd.Series(y_train_resampled)
from imbalanced-learn.
I also cannot reproduce even after updating imbalanced-learn using pip
.
from imbalanced-learn.
Related Issues (20)
- [BUG] `_transform_one` fails on sparse DataFrame
- [BUG] RandomOversampler crashes on timedelta64 column that only contains NaTs
- [BUG] `BorderlineSMOTE` takes an unusually long amount of time in later versions of scikit-learn HOT 5
- Compatibility with scikit-learn 1.4.0 HOT 3
- [BUG] `sklearn=1.4` TypeError: BaggingClassifier.__init__() got an unexpected keyword argument 'base_estimator'
- [BUG] Attribute Error: Pipeline object has no attribute "_check_fit_params" HOT 1
- [BUG] Test issues with sklearn 1.4 HOT 3
- [SO] SMOTEEN generates imbalance dataset HOT 2
- AttributeError: 'NoneType' object has no attribute 'split' HOT 3
- [BUG]sampling_strategy working incorrectly with random oversampling HOT 2
- SmoteNC leads to Killed process HOT 2
- fix scikit-learn 1.5 parse_version link HOT 1
- Python 3.13: Two tests from test_docstring.py are failing HOT 2
- New error message from established workflow: AttributeError: 'Pipeline' object has no attribute '_check_fit_params'[BUG] HOT 8
- how can the tool be used with DASK-ML to deal with large data HOT 1
- [BUG] ImportError: cannot import name '_get_column_indices' from 'sklearn.utils with pre-release versions HOT 1
- [BUG] ImportError: cannot import name '_get_column_indices' HOT 8
- Combine SMOTENC and TomekLink and Classifier together in a pipeline for Mixed Datatype Datasets
- [BUG]ImportError: cannot import name '_get_column_indices' from 'sklearn.utils' HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imbalanced-learn.