https://github.com/abdcelikkanat/tne

TNE: A Latent Model for Representation Learning on Networks

https://github.com/abdcelikkanat/tne

Science Score: 13.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (9.5%) to scientific vocabulary
Last synced: 10 months ago · JSON representation

Repository

TNE: A Latent Model for Representation Learning on Networks

Basic Info
Statistics
  • Stars: 5
  • Watchers: 1
  • Forks: 1
  • Open Issues: 1
  • Releases: 0
Created about 8 years ago · Last pushed almost 3 years ago
Metadata Files
Readme

README.md

TNE

Topic-Aware Latent Models for Representation Learning on Networks

Installation

Anaconda installation
  1. Clone the repository by typing the following command: git clone https://github.com/abdcelikkanat/TNE.git
  2. To initialize a new environment for Python 3.6 and to activate it, run the commands conda create -n tne python=3.6 source activate tne
  3. Install all the required modules. pip install -r requirements.txt

Note: It may be required to compile the C extension of gensim package for a faster training process so you can run the following command inside the *"ext/gensimwrapper/models/"* folder:_ python setup.py install and you should copy the output .so file into the same directory.

How to run

An example to learn node representations with Louvain community detection method might be ``` python run.py --corpus ./examples/corpus/karate.corpus --graphpath ./examples/datasets/karate.gml --emb ./karate.embedding --commmethod louvain

Similarly, we can adopt *LDA* algorithm in learning node representations. python run.py --corpus ./examples/corpus/karate.corpus --emb ./karate.embedding --comm_method lda --K 2 ```

You can view all the detailed list of commands by typing python run.py -h

External Libraries

i) You might need to compile the source codes of BigClam and GibbsLDA algorithms for your operating system and place the executable files into suitable directories. You can also configure some parameters defined in the consts.py file.

Owner

  • Name: Abdulkadir Çelikkanat
  • Login: abdcelikkanat
  • Kind: user
  • Location: İstanbul

GitHub Events

Total
Last Year

Dependencies

requirements.txt pypi
  • bayesian-hmm ==0.0.3
  • cython *
  • gensim ==2.3.0
  • python-louvain ==0.13
  • scipy ==1.2.0
ext/gensim_wrapper/models/setup.py pypi