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

Sporadic Errors during Pooling #14

Closed
mmcdermott opened this issue Jul 26, 2017 · 3 comments
Closed

Sporadic Errors during Pooling #14

mmcdermott opened this issue Jul 26, 2017 · 3 comments

Comments

@mmcdermott
Copy link

I've forked the repo, and am attempting to run through the 'usage.ipynb' jupyter notebook, replacing the random data, targets, and graph with some real data, targets, and graph I have. Doing so Makes the following snippet:

graphs, perm = coarsening.coarsen(A_sparse, levels=3, self_connections=False)
X_train_perm = coarsening.perm_data(X_train.values, perm)

Occasionally error out with a 'index 563 is out of bounds for axis 0 of size 563' error. This happens sporadically for the same inputs.

@mmcdermott
Copy link
Author

I think this is because my graph was not connected, which I realize now your system is not intended to work with. I'm not totally sure, but that's my running hypothesis at the moment.

@mdeff
Copy link
Owner

mdeff commented Aug 10, 2017

I don't think disconnected graphs should be an issue for the coarsening (definitely not for filtering). Hard to tell what's wrong without the data though. I would suggest to insert some print statements around the lines where you get the error.

@TMorville
Copy link

I have similar issues. Have added a data sample at #36.

@mdeff mdeff closed this as completed Jul 20, 2020
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

3 participants