-
Notifications
You must be signed in to change notification settings - Fork 390
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
index X is out of bounds for axis 0 with size Y when pooling #36
Comments
OK. So the switching of indexes seems to stem from lines 55-56
which is later used in
where the bug appears. Here
goes over 9974, it gives
but all of those are of length 9974, hence the index error. Here is the print of a subsample of
fixing the above manually resolves the bug:
but yields yet another.
which happens because the length of |
@TMorville I have the same problem. What did you end up doing? |
First off, thanks for developing and sharing this interesting package. I've forked the repo and all test cases work fine. This is probably related to #14, but I've made a new issue because I have data.
I have an adjacency matrix from a large directed graph. The dimensions of the adjacency matrix are
(7919711, 7116242)
and the structure is extremely sparse, number of non-zero elements are2732656
.When I try to run the pooling on a subset
(10000x10000)
of my own data that you can find here (5.07 KB file) I can produce errors with the flavour (ran on sparse_adj_subset)And if I rerun, I get
showing that the index changes.
I am running with
graphs, perm = coarsening.coarsen(ajd_sparse_ss, levels=3, self_connections=False)
but settingself_connections=True
gives similar problems.The text was updated successfully, but these errors were encountered: