TST Extend tests for scipy.sparse.*array in sklearn/utils/tests/test_estimator_checks.py#27203
Conversation
|
Also, I wonder why pytest can't be used here? @glemaitre |
|
From the top of the head, it comes to not request This is the meaning of the comment on the top of the file: |
|
|
||
| if sparse.issparse(result_full): | ||
| result_full = result_full.A | ||
| result_full = result_full.toarray() |
There was a problem hiding this comment.
It was the last error due to the deprecation.
|
@StefanieSenger: I do not know if you have been reviewing Pull Requests, but I think you should be able to review PR for #27090 starting with this Pull Request for instance. :) This is just a suggestion and you might already focus on something: feel free to review those PRs or not. |
|
Thank you @jjerphan for you trust. Though, I‘m not sure if I can be of use here. This is the first review that I‘m trying, the changes in the code make sense to me, but I don‘t have anything to add except for a question. This is not really a review, I‘m afraid. Edit: I've just seen that I'm not done yet. I need some time to understand |
|
So, the idea behind But the |
|
@StefanieSenger Thanks for noting this issue. I think we should address it in another PR because as you mentioned, we try first to fix the test files. However, we want the scikit-learn estimators to be accepting sparse arrays and this should be also true for estimator that are compatible with scikit-learn. So we will need to create/duplicate the |
…st_estimator_checks.py` (scikit-learn#27203) Co-authored-by: Guillaume Lemaitre <g.lemaitre58@gmail.com>
Reference Issues/PRs
Towards #27090.
What does this implement/fix? Explain your changes.
Any other comments?
Added
__init__toSparseTransformerso it can transform both into a matrix and into an array.