{"id":13958372,"url":"https://github.com/hwwang55/KGCN","last_synced_at":"2025-07-20T23:31:15.123Z","repository":{"id":43673661,"uuid":"141302544","full_name":"hwwang55/KGCN","owner":"hwwang55","description":"A tensorflow implementation of Knowledge Graph Convolutional Networks","archived":false,"fork":false,"pushed_at":"2024-01-09T23:58:28.000Z","size":179397,"stargazers_count":472,"open_issues_count":22,"forks_count":151,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-09T13:18:37.312Z","etag":null,"topics":["graph-convolutional-networks","knowledge-graph","recommender-systems"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hwwang55.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}},"created_at":"2018-07-17T14:38:27.000Z","updated_at":"2024-07-28T11:30:14.000Z","dependencies_parsed_at":"2022-08-12T10:42:02.791Z","dependency_job_id":null,"html_url":"https://github.com/hwwang55/KGCN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwwang55%2FKGCN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwwang55%2FKGCN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwwang55%2FKGCN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hwwang55%2FKGCN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hwwang55","download_url":"https://codeload.github.com/hwwang55/KGCN/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226845005,"owners_count":17691140,"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":["graph-convolutional-networks","knowledge-graph","recommender-systems"],"created_at":"2024-08-08T13:01:30.743Z","updated_at":"2024-11-28T01:31:53.249Z","avatar_url":"https://github.com/hwwang55.png","language":"Python","funding_links":[],"categories":["其他_推荐系统"],"sub_categories":["网络服务_其他"],"readme":"# KGCN\n\nThis repository is the implementation of [KGCN](https://dl.acm.org/citation.cfm?id=3313417) ([arXiv](https://arxiv.org/abs/1904.12575)):\n\n\u003e Knowledge Graph Convolutional Networks for Recommender Systems  \nHongwei Wang, Miao Zhao, Xing Xie, Wenjie Li, Minyi Guo.  \nIn Proceedings of The 2019 Web Conference (WWW 2019)\n\n![](https://github.com/hwwang55/KGCN/blob/master/framework.png)\n\nKGCN is **K**nowledge **G**raph **C**onvolutional **N**etworks for recommender systems, which uses the technique of graph convolutional networks (GCN) to proces knowledge graphs for the purpose of recommendation.\n\n\n### Files in the folder\n\n- `data/`\n  - `movie/`\n    - `item_index2entity_id.txt`: the mapping from item indices in the raw rating file to entity IDs in the KG;\n    - `kg.txt`: knowledge graph file;\n  - `music/`\n    - `item_index2entity_id.txt`: the mapping from item indices in the raw rating file to entity IDs in the KG;\n    - `kg.txt`: knowledge graph file;\n    - `user_artists.dat`: raw rating file of Last.FM;\n- `src/`: implementations of KGCN.\n\n\n\n\n### Running the code\n- Movie  \n  (The raw rating file of MovieLens-20M is too large to be contained in this repository.\n  Download the dataset first.)\n  ```\n  $ wget http://files.grouplens.org/datasets/movielens/ml-20m.zip\n  $ unzip ml-20m.zip\n  $ mv ml-20m/ratings.csv data/movie/\n  $ cd src\n  $ python preprocess.py -d movie\n  ```\n- Music\n  - ```\n    $ cd src\n    $ python preprocess.py -d music\n    ```\n  - open `src/main.py` file;\n    \n  - comment the code blocks of parameter settings for MovieLens-20M;\n    \n  - uncomment the code blocks of parameter settings for Last.FM;\n    \n  - ```\n    $ python main.py\n    ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwwang55%2FKGCN","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhwwang55%2FKGCN","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhwwang55%2FKGCN/lists"}