Skip to content
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

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

Open
tbonewmy opened this issue Feb 2, 2017 · 1 comment
Open

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

tbonewmy opened this issue Feb 2, 2017 · 1 comment

Comments

@tbonewmy
Copy link

tbonewmy commented Feb 2, 2017

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.

@rhiever
Copy link
Contributor

rhiever commented Feb 2, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants