Code Monkey home page Code Monkey logo

abrw's Introduction

Notice

For the future updates of ABRW method, please see https://github.com/houchengbin/OpenANE


ABRW: Attributed Biased Random Walks

ABRW is an Attributed Network/Graph Embedding (ANE) method, which takes network structural information and node attribute information as the input, and generates unified low-dim node embeddings for each node in the network as the output. The node embeddings can be then fed into various different downstream tasks e.g. node classification and link prediction. The off-the-shelf Machine Learning techniques and distance/similarity metrics can be easily applied in the downstream tasks, since the resulting node embeddings are just some isolated low-dim data points in Euclidean space.

by Chengbin HOU 2018 chengbin.hou10(AT)foxmail.com

For more details, please have a look at our paper https://arxiv.org/abs/1811.11728. And if you find ABRW or this framework is useful for your research, please consider citing it.

@article{hou2020RoSANE,
  title={RoSANE: Robust and Scalable Attributed Network Embedding for Sparse Networks},
  author={Hou, Chengbin and He, Shan and Tang, Ke},
  journal={Neurocomputing},
  year={2020},
  publisher={Elsevier},
  url={https://doi.org/10.1016/j.neucom.2020.05.080},
  doi={10.1016/j.neucom.2020.05.080},
}

Usages

Install necessary packages

pip install -r requirements.txt

Note: python 3.6 or above is required due to the new print() feature

Run ABRW method with default parameters

python src/main.py --method abrw

Try other methods

abrw; aane; tadw; attrpure; attrcomb; deepwalk; node2vec

Change parameters in each method

Please see main.py

Datasets

Default

Cora (a citation network)

Your own dataset?

FILE for structural information (each row):

adjlist: node_id1 node_id2 node_id3 -> (the edges between (id1, id2) and (id1, id3))

OR edgelist: node_id1 node_id2 weight(optional) -> one edge (id1, id2)

FILE for attribute information (each row):

node_id1 attr1 attr2 ... attrM

FILE for label (each row):

node_id1 label(s)

Acknowledgement

Thanks to Zeyu DONG for helpful discussions. And thanks to the excellent project, so that we can have a good starting point to carry on our project.

abrw's People

Contributors

dependabot[bot] avatar houchengbin avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

abrw's Issues

question about ABRW

Brilliant idea!
When I tried to apply ABRW to get the embedding of dataset DBLP, always reminded me of MemoryError. what is the problem? I'm very interested in your project,looking forward to your reply.

Thank you very much!
Best!

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.