-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
index error when fit_transform a large dataset #26
Comments
It seems like a problem resulting from using a sparse matrix. To be honest, sparse matrix were completely neglected when writing this. Which kinda makes sense given when they are usually needed and the fact that most methods here (definitely SMOTE) rely on local density estimations to generate new samples. I'll take a look over the weekend. |
I found above problem cause by
test code:
sulotion:
Add a custom function to detect the type then choose |
I have
X_train_features.shape
(30962, 15637) andy_train.shape
(30962,)type(X_train_features)
isscipy.sparse.csr.csr_matrix
get index error:
The text was updated successfully, but these errors were encountered: