Giter Site home page Giter Site logo

davidmcdonald1993 / heat Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 6.0 39.76 MB

Reference implementation of the HEAT algorithm described in https://link.springer.com/chapter/10.1007/978-3-030-62362-3_4

License: MIT License

Python 69.51% Shell 30.49%
hyperbolic-geometry network-embedding

heat's Introduction

HEAT: Hyperbolic Embedding of Attributed Networks

Reference implementation of algorithm described in https://link.springer.com/chapter/10.1007/978-3-030-62362-3_4

Authors: David MCDONALD ([email protected]) and Shan HE ([email protected])

Requirements:

  • Python3
  • Numpy
  • Scipy
  • Scikit-learn
  • Scikit-multilearn
  • Keras

Required packages (pip)

Install the required packages with

pip install -r requirements.txt 

Setup environment (conda)

The conda environment is described in heat_env.yml.

Run

conda env create -f heat_env.yml

to create the environment, and

conda activate heat-env

to activate it.

How to use:

Run the code with

python main.py --edgelist path/to/edgelist.tsv --features path/to/features.csv -e *num_epochs* --embedding path/to/save/embedding --alpha *alpha_value*

Additional options can be viewed with

python main.py --help

Input Data Format

Graph

Graphs are given as tab-separated edgelists in the form:

u\tv\tw
  • where w is the weight of the connection between nodes u and v
  • u and v must be integers
  • every int in [0, N-1] must appear in the edgelist

Node attributes and labels

labels and features should be comma separated tables indexed by node id

Citation:

If you find this useful, please use the following citation

@inproceedings{mcdonald2020heat,
  title={HEAT: Hyperbolic Embedding of Attributed Networks},
  author={McDonald, David and He, Shan},
  booktitle={International Conference on Intelligent Data Engineering and Automated Learning},
  pages={28--40},
  year={2020},
  organization={Springer}
}

heat's People

Contributors

davidmcdonald1993 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

heat's Issues

About generating the datasets

Hi, I am curious about how do you generate the feats and labels for these datasets. Do you mind sharing the preprocessing part of these datasets?

Also, there are two datasets (mit and pubmed) which didn't been mentioned in your paper, I am wondering where are they from? Thank you!

License

Can you add a license to the repo?

All the label is zero?

Hi I am very interested in your project. In your main.py, train_y = np.zeros([len(train_x), 1, 1], dtype=np.int32 ) , the train_y is the label right? why the label for all the positive and negative label are all 0? Thanks!

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.