-
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
Autosklearn doesn't support sparse y #1210
Comments
Problem traceThe main issue is that
This has been raised in an issue here. SolutionFor now the easiest solution is to check Where to implement the changeFurther investigation shows that this same error would happen in from scipy.sparse import csr_matrix
from autosklearn.data.target_validator import TargetValidator
import numpy as np
y = np.random.random(1000)
y[y > 0.9] = 0
y_sparse = csr_matrix(y)
tv = TargetValidator(is_classification=False)
tv._check_data(y_sparse)
# Same error |
Addressed with PR #1213 |
I'm re-opening this as this now fails if a user passes in |
Ahh yes, I forgot to check |
As noted in openml/automlbenchmark#370, autosklearn fails to process sparse labels for regression. This extends further and also comes up in classification.
To reproduce:
The text was updated successfully, but these errors were encountered: