Skip to content

Transformer-based Realtime User Action Model for Recommendation at Pinterest

License

Notifications You must be signed in to change notification settings

pinterest/transformer_user_action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

TransAct

Transformer-based Realtime User Action Model for Recommendation at Pinterest

TransAct is a PyTorch module for modeling user sequences using the Transformer architecture. It is designed to handle user behavior data with sequential interactions, such as recommendation systems or user activity prediction.

Paper

Xue Xia, Chantat Eksombatchai, Nikil Pancha, Dhruvil Deven Badani, Po- Wei Wang, Neng Gu, Saurabh Vishwas Joshi, Nazanin Farahpour, Zhiyuan Zhang, Andrew Zhai. 2023. TransAct: Transformer-based Realtime User Action Model for Recommendation at Pinterest.

Prerequisites

  • Python 3.9.7 or higher: You can download and install Python from the official Python website at https://www.python.org/downloads/ or by using a package manager like conda or pip.

  • torch 1.12: You can install torch 1.12 using pip with the following command:

    pip install torch==1.12
    

    Alternatively, if you are using conda, you can install torch 1.12 with the following command:

    conda install -c pytorch torch==1.12
    
    

Usage

python transact_code/test_run_transact.py

About

Transformer-based Realtime User Action Model for Recommendation at Pinterest

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages