-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
Add support for sparse input to the Bagging models #2399
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
Comments
Any particular reason this feature is tagged for 0.15? Because we don't want to introduce new estimators without sparse support? Usually I wouldn't flag new features for releases. |
Agreed from my side. |
Is there anything that needs to be done here that is outside of the scope of issue #655? The sparse input support needs to be implemented at the desicion tree level as I understand so both of these issues are analogous. |
The bagging module is not tree-specific. It works with any base estimator. On 11 March 2014 03:22, hamsal notifications@github.com wrote:
|
I cleared the 0.15 tag. |
where does the densifying happen? i'm trying to get it to break on sparse input to a classifier that should be able to handle it ( namely, KNeighborsClassifier ). As far as i can tell, it gets all the way through BaggingClassifier to KNeighborsClassifier.fit without being densified. i check the type of the input data directly before line 113, which appears to be where the hand-off to the KNeighborsClassifier happens, and it's still sparse at this point. here's my attempt at reproducing this issue. anyone know where to look to find the problem? |
closed by #3076 |
Bagging models as implemented in #2375 currently only support dense array-like input. We need add support for CSR or CSC input.
Depending on whether sample-bagging (without weights) and / or feature-bagging are enabled and the kind of input data representation we get some copy of re-samples of the input data are likely to be required (by calling
tocsr()
ortocsc()
).The text was updated successfully, but these errors were encountered: