Skip to content

Commit

Permalink
Merge pull request #124 from dice-group/docker
Browse files Browse the repository at this point in the history
Add Dockerfile
  • Loading branch information
Demirrr authored Aug 3, 2023
2 parents 7035d57 + e34254a commit 249210d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM python:3.10
#RUN pip install dicee==0.0.4
RUN pip3 install "pandas>=1.5.1" "torch>=2.0.0" "polars>=0.16.14" "scikit-learn>=1.2.2" "pyarrow>=11.0.0" "pytest>=7.2.2" "gradio>=3.23.0" "psutil>=5.9.4" "pytorch-lightning==1.6.4" "pykeen==1.10.1" "zstandard>=0.21.0"
WORKDIR /dicee
ADD . .
CMD ./main.py
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,17 @@ pyreverse dicee/trainer && dot -Tpng -x classes.dot -o trainer.png && eog traine
```
</details>

## Docker
To build the Docker image:
```
docker build -t dice-embeddings .
```

To test the Docker image:
```
docker run --rm -v ~/.local/share/dicee/KGs:/dicee/KGs dice-embeddings ./main.py --model AConEx --embedding_dim 16
```

# Knowledge Graph Embedding Models
<details> <summary> Details</summary>

Expand Down
1 change: 1 addition & 0 deletions main.py
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env python3
import json
from dicee.executer import Execute
import pytorch_lightning as pl
Expand Down

0 comments on commit 249210d

Please sign in to comment.