boruta_py
boruta_py copied to clipboard
boruta doesn't accept sparse matrices?
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?