https://github.com/abdcelikkanat/tne
TNE: A Latent Model for Representation Learning on Networks
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
Repository
TNE: A Latent Model for Representation Learning on Networks
Basic Info
- Host: GitHub
- Owner: abdcelikkanat
- Language: C++
- Default Branch: master
- Homepage: https://abdcelikkanat.github.io/projects/TNE/
- Size: 14.6 MB
Statistics
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 1
- Releases: 0
Metadata Files
README.md
TNE
Topic-Aware Latent Models for Representation Learning on Networks
Installation
Anaconda installation
- Clone the repository by typing the following command:
git clone https://github.com/abdcelikkanat/TNE.git - 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 - 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
- Repositories: 3
- Profile: https://github.com/abdcelikkanat
GitHub Events
Total
Last Year
Dependencies
- bayesian-hmm ==0.0.3
- cython *
- gensim ==2.3.0
- python-louvain ==0.13
- scipy ==1.2.0