FFrankyy / FINDER

FINDER - FInding key players in complex Networks through DEep Reinforcement learning (Nature Machine Intelligence)
MIT License
182 stars 46 forks source link

Key error with Critical Node Cost problem #7

Closed FL33TW00D closed 4 years ago

FL33TW00D commented 4 years ago

Hi there, I am getting a KeyError when attempting to run your example datasets (such as Crime) with the provided .gml cost data.

I redownloaded and rebuilt a new version of FINDER from your repo, but I am still seeing the key error. Please find the error log below.

image

Do you know what is causing this?

Many Thanks, Chris

FFrankyy commented 4 years ago

In 'weights.append(g.node[i]['weight'])' , please change "g.node[str(i)]" under the weighted scenario.

FL33TW00D commented 4 years ago

In 'weights.append(g.node[i]['weight'])' , please change "g.node[str(i)]" under the weighted scenario.

Thank you very much it works.

xiaohu-art commented 2 years ago

屏幕截图 2022-07-16 093057 hi there ! I have modified the error mentioned above, but it still doesn't work. what's wrong here please?

Stephaniesuu commented 1 year ago

屏幕截图 2022-07-16 093057 你好呀 ! 我修改了上面提到的错误,还是不行。 请问这里有什么问题吗?

hello, I'm having the same problem, could you help me?