Home

Awesome

TASTER: Temporal Knowledge Graph Embedding via Sparse Transfer Matrix

Introduction

This toolbox is exploited to support the work in "Domain Knowledge-enhanced Variable Selection for Biomedical Data Analysis", submitted to Information Sciences Journal. We provide a PyTorch implementation of the TASTER model for temporal knowledge graph embedding (TKGE).

Implemented details

Train & Test

Please create a python project in your local workstation, and import these files contained in the project. Run run_icews.py and run_wiki.py to train and test on the ICEWS and Wikidata12k datasets respectively. The former is for data with timestamps and the latter is for data with time intervals.

For example, this command train a TASTER model on Wikidata12k dataset with GPU 0.

CUDA_VISIBLE_DEVICES=0 python run_wiki.py \
-dropout 0.4  -lr=0.005 -dim 200 -model TASTER -dig -epochs 200 --local \
-reg1 1e-6 -bs 2 --block -eval_step 5 -step 5

Check argparse configuration at src/run_wiki.py (run_icews.py ) for more arguments and more details.