boruta_py icon indicating copy to clipboard operation
boruta_py copied to clipboard

boruta doesn't accept sparse matrices?

Open eskrav opened this issue 5 years ago • 0 comments

Hi, it looks like Boruta doesn't by default accept sparse matrices (I assume this is determined in line 517 of boruta_py.py, since the default value of accept_sparse is false for check_X_y). I get the following error:

A sparse matrix was passed, but dense data is required. Use X.toarray() to convert to a dense numpy array.

Is there any particular reason for this, given RandomForestClassifier does accept sparse matrices, at least in the more recent releases of sklearn?

eskrav avatar Dec 04 '19 10:12 eskrav