Git Product home page Git Product logo

carca's Introduction

PWC PWC PWC PWC

CARCA

This is our implementation for the CARCA paper accepted at RecSys 2022 https://dl.acm.org/doi/10.1145/3523227.3546777:

Rashed, Ahmed, et al. "Context and Attribute-Aware Sequential Recommendation via Cross-Attention"

Please cite our paper if you use the code or datasets.

Enviroment

* pandas==1.0.3
* tensorflow==1.14.0
* matplotlib==3.1.3
* numpy==1.18.1
* six==1.14.0
* scikit_learn==0.23.1

Steps

  1. 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/"

  2. Add the data files inside the "Data/" folder

  3. To run the respective dataset, please use the below commands

  • python CARCA.py 'Video_Games'
  • python CARCA.py 'Men'
  • python CARCA.py 'Beauty'
  • python CARCA.py 'Fashion'
  1. 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

  2. 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.

Important Note

If 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.

carca's People

Contributors

ahmedrashed-ml avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.