{"id":17128112,"url":"https://github.com/magnusja/conve","last_synced_at":"2025-06-25T07:36:03.989Z","repository":{"id":146085861,"uuid":"97085132","full_name":"magnusja/ConvE","owner":"magnusja","description":"Implementation of ConvE proposed by Dettmers et al. in Convolutional 2D Knowledge Graph Embeddings.","archived":false,"fork":false,"pushed_at":"2018-05-24T15:04:33.000Z","size":37,"stargazers_count":15,"open_issues_count":1,"forks_count":7,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-20T07:58:19.206Z","etag":null,"topics":["conve","convolutional-neural-networks","deep-learning","knowledge-embedding","knowledge-graph","machine-learning","network-embedding","neural-network"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/magnusja.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-07-13T05:53:45.000Z","updated_at":"2025-03-05T00:37:59.000Z","dependencies_parsed_at":null,"dependency_job_id":"b541865c-2c0c-407e-8ae2-ea4b327683fa","html_url":"https://github.com/magnusja/ConvE","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/magnusja/ConvE","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusja%2FConvE","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusja%2FConvE/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusja%2FConvE/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusja%2FConvE/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magnusja","download_url":"https://codeload.github.com/magnusja/ConvE/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magnusja%2FConvE/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261827744,"owners_count":23215807,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["conve","convolutional-neural-networks","deep-learning","knowledge-embedding","knowledge-graph","machine-learning","network-embedding","neural-network"],"created_at":"2024-10-14T19:06:16.773Z","updated_at":"2025-06-25T07:36:03.981Z","avatar_url":"https://github.com/magnusja.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConvE\n\nImplementation of ConvE proposed by Dettmers et al. in [Convolutional 2D Knowledge Graph Embeddings](https://arxiv.org/abs/1707.01476). You can find the official repository with knowledge graph datasets [here](https://github.com/TimDettmers/ConvE).\n\nImplementation uses [PyTorch](http://pytorch.org/).\n\n## Usage\n\n### Preprocessing\n\n```\nusage: preprocess.py [-h] {train,valid} ...\n\nPreprocess knowledge graph csv train/valid (test) data.\n\npositional arguments:\n  {train,valid}  mode\n    train        Preprocess a training set\n    valid        Preprocess a valid or test set\n\noptional arguments:\n  -h, --help     show this help message and exit\n```\n\n#### Training set\n\n```\npython preprocess.py train ../train.tsv\n```\n\n#### Validation set\n\n```\npython preprocess.py valid ../train.pkl ../valid.tsv\n```\n\n### Training\n\n```\npython train.py ../train.pkl ../valid.pkl\n```\n\n```\nusage: train.py [-h] [--name NAME] [--batch-size BATCH_SIZE] [--epochs EPOCHS]\n                [--label-smooth LABEL_SMOOTH]\n                train_path valid_path\n\nTrain ConvE with PyTorch.\n\npositional arguments:\n  train_path            Path to training .pkl produced by preprocess.py\n  valid_path            Path to valid/test .pkl produced by preprocess.py\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --name NAME           name of the model, used to create a subfolder to save\n                        checkpoints\n  --batch-size BATCH_SIZE\n  --epochs EPOCHS\n  --label-smooth LABEL_SMOOTH\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnusja%2Fconve","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagnusja%2Fconve","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagnusja%2Fconve/lists"}