{"id":28098787,"url":"https://github.com/rmanluo/motifgnn","last_synced_at":"2025-06-14T11:34:50.717Z","repository":{"id":153334210,"uuid":"340250333","full_name":"RManLuo/MotifGNN","owner":"RManLuo","description":"Official code implementation for paper A Motif-Based Graph Neural Network to Reciprocal Recommendation for Online Dating","archived":false,"fork":false,"pushed_at":"2022-06-14T03:03:07.000Z","size":21,"stargazers_count":6,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-13T18:02:00.234Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RManLuo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-02-19T03:42:14.000Z","updated_at":"2025-03-01T08:12:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"488d0c04-7150-40a9-805b-749a3c5fd03f","html_url":"https://github.com/RManLuo/MotifGNN","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RManLuo/MotifGNN","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RManLuo%2FMotifGNN","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RManLuo%2FMotifGNN/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RManLuo%2FMotifGNN/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RManLuo%2FMotifGNN/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RManLuo","download_url":"https://codeload.github.com/RManLuo/MotifGNN/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RManLuo%2FMotifGNN/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259809654,"owners_count":22914907,"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":[],"created_at":"2025-05-13T17:58:50.146Z","updated_at":"2025-06-14T11:34:50.706Z","avatar_url":"https://github.com/RManLuo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MotifGNN\n\u003e Author Linhao Luo \n\u003e luolinhao1998@gmail.com\n\nOfficial code implementation for paper [A Motif-Based Graph Neural Network to Reciprocal Recommendation for Online Dating](https://link.springer.com/chapter/10.1007/978-3-030-63833-7_9)\n\n## Environments\nUbuntu 20.04\n\npython==3.6\n\nGPU: RTX 2080\n\nCUDA: 10.1\n\nDatabase: Neo4j\n\nPython pacakages\n\n```\npytorch==1.6.0\npandas\nneo4j\nsklearn\nnumpy\ngensim\ntqdm\n```\n\n## Download the code\n\nDue to the privacy issue, we only public the ssjy dataset. You can download the dataset [here](https://drive.google.com/file/d/1u-59m0u5-pcF4TCN6zjGLICWFdQteCUG/view?usp=sharing) and unzip to \"data\" folder.\n\n## Data preprocessing\n\n### Load graph to neo4j\n\n```\nsudo neo4j-admin import --database=sjjy.db --nodes:User=data/sjjy_data/users.csv --relationships=data/sjjy_data/relations.csv --id-type=INTEGER\n```\n\n### Generate train and test data\n\n```\npython3 data/prepare_data.py\n```\n\n### Preprocess data for training\n\n```\npython3 src_sjjy/data_preprocess.py\n```\n\n## Config\n\n```\ncat src_sjjy/pipline_config.py\n```\n\n## Train\n\n```\npython3 train_pipline.py\n```\n\n## Citation\n\n```\n@inproceedings{luo2020motif,\n  title={A Motif-Based Graph Neural Network to Reciprocal Recommendation for Online Dating},\n  author={Luo, Linhao and Liu, Kai and Peng, Dan and Ying, Yaolin and Zhang, Xiaofeng},\n  booktitle={International Conference on Neural Information Processing},\n  pages={102--114},\n  year={2020},\n  organization={Springer}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmanluo%2Fmotifgnn","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmanluo%2Fmotifgnn","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmanluo%2Fmotifgnn/lists"}