Giter VIP home page Giter VIP logo

networksciencelab / gdm Goto Github PK

View Code? Open in Web Editor NEW
32.0 2.0 9.0 583.54 MB

Repository of the paper "Machine learning dismantling and early-warning signals of disintegration in complex systems" by M. Grassia, M. De Domenico and G. Mangioni

Home Page: https://rdcu.be/cwqp3

License: GNU General Public License v3.0

Python 55.60% Makefile 0.46% C++ 43.95%
networks graphs dismantling geometric-deep-learning machine-learning network-dismantling early-warning-signals np-hard

gdm's People

Contributors

emarco avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gdm's Issues

How can I use your pre-trained models to make inferences with my network data?

Hi, Marco,

Thank you for the nice work about network dismantling.

I read your instructions and was able to reproduce your results at least partialy, but I could not find what to do with my own data to infer dismanting .
How can I use your pre-trained models to make inferences with my own network data?
I'd like to know about the API a little bit more.

I would be happy if you could help me.
Thank you

shin111

Questioning the test results of the GDM model

Hello! Your work on Machine learning dismantling and early-warning signals of disintegration in complex systems is very interesting. we have some questions about this work. In reproducing this work, we found the node removal order of the test network arenas-meta from this file "out/df/synth_train_NEW/t_0.18/T_0.1/GAT_Model.csv" which contains the label of each node and the predicted values of GDM model. However, according to the node removal order, the LCC result is very different from the result of your appendix material, what is the reason for this? We are looking forward to hearing from you! Thanks!

ModuleNotFoundError:No module named 'torch_scatter.scatter_cuda'

Hi! Thanks for your great job : )
I am having some problems reproducing your paper as instructed.
My running environment is:

Ubuntu 20.04
driver version: 465.31
torch.__version__: 1.0.1.post2
torch.cuda.is_available(): True
torch.version.cuda:9.0.176

When running this code:
python network_dismantling/machine_learning/pytorch/reproduce_results.py --help

there is an error displayed:

Traceback (most recent call last):
  File "network_dismantling/machine_learning/pytorch/reproduce_results.py", line 33, in <module>
    from network_dismantling.machine_learning.pytorch.grid import init_network_provider
  File "/home/dddx/NetworkDismantlingML/GDM/network_dismantling/machine_learning/pytorch/grid.py", line 33, in <module>
    from network_dismantling.machine_learning.pytorch.models.GAT import GAT_Model
  File "/home/dddx/NetworkDismantlingML/GDM/network_dismantling/machine_learning/pytorch/models/GAT.py", line 26, in <module>
    from torch_geometric.nn import GATConv
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_geometric/nn/__init__.py", line 2, in <module>
    from .data_parallel import DataParallel
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_geometric/nn/data_parallel.py", line 4, in <module>
    from torch_geometric.data import Batch
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_geometric/data/__init__.py", line 1, in <module>
    from .data import Data
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_geometric/data/data.py", line 4, in <module>
    from torch_geometric.utils import (contains_isolated_nodes,
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_geometric/utils/__init__.py", line 2, in <module>
    from .scatter import scatter_
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_geometric/utils/scatter.py", line 1, in <module>
    import torch_scatter
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_scatter/__init__.py", line 3, in <module>
    from .mul import scatter_mul
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_scatter/mul.py", line 3, in <module>
    from torch_scatter.utils.ext import get_func
  File "/home/dddx/anaconda3/envs/gdm/lib/python3.7/site-packages/torch_scatter/utils/ext.py", line 5, in <module>
    import torch_scatter.scatter_cuda
ModuleNotFoundError: No module named 'torch_scatter.scatter_cuda'

I would like to ask how this should be solved.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.