Shortcuts

安装

Pip

  1. 安装:

pip install dgl
pip install git+https://github.com/LuYF-Lemon-love/pybind11-OpenKE.git
  1. 验证:

>>> import pybind11_ke
>>> pybind11_ke.__version__
'3.0.0'
>>>

Linux

  1. 克隆 main 分支。

git clone -b main git@github.com:LuYF-Lemon-love/pybind11-OpenKE.git --depth 1
cd pybind11-OpenKE/
python -m venv env
source env/bin/activate
which python
pip install --upgrade pip
pip install dgl
pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple
  1. 快速开始。

cd examples/TransE/
python single_gpu_transe_FB15K.py

Windows

  1. 克隆 main 分支。

git clone -b main git@github.com:LuYF-Lemon-love/pybind11-OpenKE.git --depth 1
cd pybind11-OpenKE/
py -m venv env
.\env\Scripts\activate
pip install --upgrade pip
pip install dgl
pip install . -i https://pypi.tuna.tsinghua.edu.cn/simple
  1. 快速开始。

cd examples/TransE/
python single_gpu_transe_FB15K.py

Docs

Access comprehensive developer documentation for Pybind11-OpenKE

View Docs