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: row index exceeds matrix dimensions #4

Open
Yunx1aoyuj1 opened this issue Oct 4, 2022 · 3 comments
Open

ValueError: row index exceeds matrix dimensions #4

Yunx1aoyuj1 opened this issue Oct 4, 2022 · 3 comments

Comments

@Yunx1aoyuj1
Copy link

File "C:\Users\16645\Desktop\代码\Anomaly Detection in Dynamic Graphs via\1_train.py", line 56, in
setting_obj.run()
File "C:\Users\16645\Desktop\代码\Anomaly Detection in Dynamic Graphs via\codes\Settings.py", line 8, in run
loaded_data = self.dataset.load()
File "C:\Users\16645\Desktop\代码\Anomaly Detection in Dynamic Graphs via\codes\DynamicDatasetLoader.py", line 173, in load
adjs, eigen_adjs = self.get_adjs(rows, cols, weights, nb_nodes)
File "C:\Users\16645\Desktop\代码\Anomaly Detection in Dynamic Graphs via\codes\DynamicDatasetLoader.py", line 142, in get_adjs
adj = sp.csr_matrix((weights[i], (rows[i], cols[i])), shape=(nb_nodes, nb_nodes), dtype=np.float32)
File "C:\aconda\envs\python38\lib\site-packages\scipy\sparse\compressed.py", line 54, in init
other = self.class(coo_matrix(arg1, shape=shape))
File "C:\aconda\envs\python38\lib\site-packages\scipy\sparse\coo.py", line 196, in init
self._check()
File "C:\aconda\envs\python38\lib\site-packages\scipy\sparse\coo.py", line 283, in _check
raise ValueError('row index exceeds matrix dimensions')

@MrRobotsAA
Copy link

换一台有gpu的机器跑就ok了

@foureye
Copy link

foureye commented Dec 19, 2023

请问这个问题解决了吗?我电脑有GPU还是报错。

@davidshumway
Copy link

My dataframe index was using DatetimeIndex, so resetting this fixed the issue for me.

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

4 participants