You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: research/kg_hyp_emb/README.md
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,19 @@
2
2
3
3
This project is a Tensorflow 2.0 implementation of Hyperbolic KG embeddings [6]
4
4
as well as multiple state-of-the-art KG embedding models which can be trained
5
-
for the link prediction task.
5
+
for the link prediction task. A PyTorch implementation is also available at: [https://github.com/HazyResearch/KGEmb](https://github.com/HazyResearch/KGEmb)
6
6
7
7
## Library Overview
8
8
9
9
This implementation includes the following models:
10
10
11
-
Complex embeddings:
11
+
#### Complex embeddings:
12
12
13
13
* Complex [1]
14
14
* Complex-N3 [2]
15
15
* RotatE [3]
16
16
17
-
Euclidean embeddings:
17
+
#### Euclidean embeddings:
18
18
19
19
* CTDecomp [2]
20
20
* TransE [4]
@@ -23,14 +23,14 @@ Euclidean embeddings:
23
23
* RefE [6]
24
24
* AttE [6]
25
25
26
-
Hyperbolic embeddings:
26
+
#### Hyperbolic embeddings:
27
27
28
28
* TransH [6]
29
29
* RotH [6]
30
30
* RefH [6]
31
31
* AttH [6]
32
32
33
-
## Usage
33
+
## Installation
34
34
35
35
First, create a python 3.7 environment and install dependencies: From kgemb/
36
36
@@ -66,6 +66,8 @@ KG_DIR=$(pwd)/..
66
66
export PYTHONPATH="$KG_DIR:$PYTHONPATH"
67
67
```
68
68
69
+
## Example usage
70
+
69
71
Then, train a model using the `train.py` script. We provide an example to train
0 commit comments