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

ValueError: Only sparse matrices with 32-bit integer indices are accepted. Got int64 indices #2

Open
houghtonweihu opened this issue Apr 5, 2024 · 2 comments

Comments

@houghtonweihu
Copy link

When I ran: bash cluster/run_cluster.sh EUR-Lex t5-base
I got this error:
ValueError: Only sparse matrices with 32-bit integer indices are accepted. Got int64 indices. Please do report a minimal reproducer on scikit-learn issue tracker so that support for your use-case can be studied by maintainers. See: https://scikit-learn.org/dev/developers/minimal_reproducer.html

from loading Y.trn.npz by
File "/xlgen-eacl-2023/cluster/cluster.py", line 38, in
Y = XLinearModel.load_label_matrix(args.y_trn)
File "/python3.10/site-packages/pecos/xmc/xlinear/model.py", line 465, in load_label_matrix
feat_mat = smat_util.load_matrix(src)
File "/python3.10/site-packages/pecos/utils/smat_util.py", line 117, in load_matrix
mat = np.load(src)

@theejung
Copy link
Contributor

Did you use python 3.6.5 and pip install -r requirements.txt ? May this issue happens due to the incompatibility of python version

@houghtonweihu
Copy link
Author

Yes, it works now. Thanks!

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

No branches or pull requests

2 participants