{"id":20216268,"url":"https://github.com/thudm/etrust","last_synced_at":"2025-07-27T07:08:37.770Z","repository":{"id":100604403,"uuid":"121234551","full_name":"THUDM/eTrust","owner":"THUDM","description":"Source code and dataset for TKDE 2019 paper “Trust Relationship Prediction in Alibaba E-Commerce Platform”","archived":false,"fork":false,"pushed_at":"2019-06-04T14:27:24.000Z","size":6027,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-10T15:50:03.597Z","etag":null,"topics":["e-commerce","factor-graph","recommendation","relationship-prediction","trust-prediction"],"latest_commit_sha":null,"homepage":"","language":"C++","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/THUDM.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}},"created_at":"2018-02-12T10:45:44.000Z","updated_at":"2024-08-12T19:36:13.000Z","dependencies_parsed_at":"2023-05-16T07:30:48.807Z","dependency_job_id":null,"html_url":"https://github.com/THUDM/eTrust","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/THUDM/eTrust","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THUDM%2FeTrust","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THUDM%2FeTrust/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THUDM%2FeTrust/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THUDM%2FeTrust/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/THUDM","download_url":"https://codeload.github.com/THUDM/eTrust/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/THUDM%2FeTrust/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267320257,"owners_count":24068527,"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","status":"online","status_checked_at":"2025-07-27T02:00:11.917Z","response_time":82,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["e-commerce","factor-graph","recommendation","relationship-prediction","trust-prediction"],"created_at":"2024-11-14T06:27:08.685Z","updated_at":"2025-07-27T07:08:37.749Z","avatar_url":"https://github.com/THUDM.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eTrust\n\n### [Project](https://sites.google.com/view/thudm-etrust) | [PDF](http://keg.cs.tsinghua.edu.cn/jietang/publications/TKDE19-Cen-et-al-Trust-Relationship-Prediction.pdf)\n\nTrust Relationship Prediction in Alibaba E-Commerce Platform\n\n[Yukuo Cen](https://sites.google.com/view/yukuocen), [Jing Zhang](https://xiaojingzi.github.io/), Gaofei Wang, [Yujie Qian](http://people.csail.mit.edu/yujieq/), Chuizheng Meng, Zonghong Dai, [Hongxia Yang](https://sites.google.com/site/hystatistics/home), [Jie Tang](http://keg.cs.tsinghua.edu.cn/jietang/).\n\nAccepted to TKDE 2019!\n\n## Prerequisites\n\n- g++\n- make\n\n## Getting Started\n\n### Installation\n\nClone this repo.\n\n```bash\ngit clone https://github.com/THUDM/eTrust\ncd eTrust\n```\n\n### Dataset\n\n- Epinion  [Source](https://www.cse.msu.edu/~tangjili/trust.html)\n- Ciao. [Source](https://www.cse.msu.edu/~tangjili/trust.html)\n- Advogato. [Source](http://www.trustlet.org/datasets/advogato/)\n\n### Training\n\nFirst you should use command `make` to compile the cpp source file and obtain the executable file.\n\n#### Training on the existing datasets\n\nYou can use `./src/main -data \u003cdatafile\u003e -edge \u003cedgefile\u003e` to train eTrust-s model. \n\nFor example, you can use `./src/main -data ./data/epinion.dat -edge ./data/epinion.edgelist` to train on Epinion dataset. You can similarly train on Ciao and Advogato datasets.\n\n#### Training on your own datasets\n\nIf you want to train eTrust on your own dataset, you should prepare the following two files:\n- xxx.dat: This file consists of two components: edge-based features and triad-based features.\n    - component 1: edge-based features (starting with the label +k or ?k denoting labeled train/test instance of the model where k is the class number)\n    - component 2: triangles formed by three edges\n- xxx.edgelist: Each line represents an edge, which contains two numbers `\u003cnode1\u003e \u003cnode2\u003e`. Each line in the edgelist file corresponds to the line with the same line number in the data file.\n\nUnder construction. If you have ANY difficulties to get things working in the above steps, feel free to open an issue. You can expect a reply within 24 hours.\n\n\n## Cite\n\nPlease cite our paper if you find this code useful for your research:\n\n```\n@article{cen2019trust,\n  title={Trust Relationship Prediction in Alibaba E-Commerce Platform},\n  author={Cen, Yukuo and Zhang, Jing and Wang, Gaofei and Qian, Yujie and Meng, Chuizheng and Dai, Zonghong and Yang, Hongxia and Tang, Jie},\n  journal={IEEE Transactions on Knowledge and Data Engineering},\n  year={2019},\n  publisher={IEEE}\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthudm%2Fetrust","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthudm%2Fetrust","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthudm%2Fetrust/lists"}