{"id":13958376,"url":"https://github.com/ahmedrashed-ml/CARCA","last_synced_at":"2025-07-20T23:31:13.961Z","repository":{"id":41139466,"uuid":"477707491","full_name":"ahmedrashed-ml/CARCA","owner":"ahmedrashed-ml","description":"Context and Attribute-Aware Sequential Recommendation via Cross-Attention, RecSys 2022","archived":false,"fork":false,"pushed_at":"2023-05-27T00:02:48.000Z","size":34,"stargazers_count":64,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-08-09T13:18:43.423Z","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/ahmedrashed-ml.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}},"created_at":"2022-04-04T13:12:59.000Z","updated_at":"2024-05-29T06:18:00.000Z","dependencies_parsed_at":"2023-01-19T07:15:49.042Z","dependency_job_id":null,"html_url":"https://github.com/ahmedrashed-ml/CARCA","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/ahmedrashed-ml%2FCARCA","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedrashed-ml%2FCARCA/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedrashed-ml%2FCARCA/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahmedrashed-ml%2FCARCA/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahmedrashed-ml","download_url":"https://codeload.github.com/ahmedrashed-ml/CARCA/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226845006,"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":[],"created_at":"2024-08-08T13:01:30.820Z","updated_at":"2024-11-28T01:31:54.930Z","avatar_url":"https://github.com/ahmedrashed-ml.png","language":"Python","funding_links":[],"categories":["其他_推荐系统"],"sub_categories":["网络服务_其他"],"readme":" \t\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/carca-context-and-attribute-aware-next-item/sequential-recommendation-on-amazon-men)](https://paperswithcode.com/sota/sequential-recommendation-on-amazon-men?p=carca-context-and-attribute-aware-next-item)\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/carca-context-and-attribute-aware-next-item/recommendation-systems-on-amazon-games)](https://paperswithcode.com/sota/recommendation-systems-on-amazon-games?p=carca-context-and-attribute-aware-next-item)\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/carca-context-and-attribute-aware-next-item/recommendation-systems-on-amazon-fashion)](https://paperswithcode.com/sota/recommendation-systems-on-amazon-fashion?p=carca-context-and-attribute-aware-next-item)\n[![PWC](https://img.shields.io/endpoint.svg?url=https://paperswithcode.com/badge/carca-context-and-attribute-aware-next-item/recommendation-systems-on-amazon-beauty)](https://paperswithcode.com/sota/recommendation-systems-on-amazon-beauty?p=carca-context-and-attribute-aware-next-item)\n\n# CARCA\n\nThis is our implementation for the CARCA paper accepted at RecSys 2022 \nhttps://dl.acm.org/doi/10.1145/3523227.3546777:\n\nRashed, Ahmed, et al. \"Context and Attribute-Aware Sequential Recommendation via Cross-Attention\"\n\nPlease cite our paper if you use the code or datasets.\n\n## Enviroment \n\t* pandas==1.0.3\n\t* tensorflow==1.14.0\n\t* matplotlib==3.1.3\n\t* numpy==1.18.1\n\t* six==1.14.0\n\t* scikit_learn==0.23.1\n\t\n## Steps\n1) Download preprocessed data from here \"https://drive.google.com/drive/folders/1a_u52mIEUA-1WrwsNZZa-aoGJcMmVugs?usp=sharing\" or the raw data from \"https://jmcauley.ucsd.edu/data/amazon/\"\n\n2) Add the data files inside the \"Data/\" folder\n\n3) To run the respective dataset, please use the below commands\n- python CARCA.py 'Video_Games'\n- python CARCA.py 'Men'\n- python CARCA.py 'Beauty'\n- python CARCA.py 'Fashion'\n\n4) To preprocess raw Amazon reviews data, please use the DataProcessing.py and put the reviews and metadata in the RawData folder. Also, generate the context dictionaries using the commented section in the CARCA.py\n\n5) To preprocess the Men and Fashion image features from scratch you will need to download all products images and pass them through a pre-trained resnet 50 model. Then match them using their ASIN code with the reviews data.\n\n\n\n## Important Note\nIf you are planning to apply CARCA on datasets without attributes or context, it is advisable to use rolling window protocol for training the model as the current training protocol (right shifted input) might not be stable in those scenarios.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedrashed-ml%2FCARCA","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahmedrashed-ml%2FCARCA","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahmedrashed-ml%2FCARCA/lists"}