scikit-rebate icon indicating copy to clipboard operation
scikit-rebate copied to clipboard

can't fit a sparse matrix as training set using object.fit()

Open tbonewmy opened this issue 8 years ago • 1 comments

can't fit a sparse matrix as training set using object.fit() and since the sparse matrix is [16000*3231961]. directly converting it to numpy array like is not practical.

Process to reproduce the issue

[ordered list the process to finding and recreating the issue, example below]

User creates a sparse matrix X and some array y, row number of X = length of y User calls ReliefF fit(X,y) ValueError: setting an array element with a sequence.

tbonewmy avatar Feb 02 '17 04:02 tbonewmy

This is a use case we should consider when going forward with the Relief algorithm set. Can we support sparse matrices with these algorithms?

AFAIK, none of the commonly-used distance matrix calculation functions in numpy/scipy/scikit-learn support sparse matrices.

rhiever avatar Feb 02 '17 22:02 rhiever