GithubHelp home page GithubHelp logo

p2mam's Introduction

README

The PyTorch implementation for $P^2MAM$

Environments

  • python 3.7.3
  • PyTorch (version: 1.4.0)
  • numpy (version: 1.16.2)

Dataset and Data preprocessing

We include the processed Diginetica, Nowplaying and Tmall datasets in the "datasets" folder.

Due to the policy, we cannot share the other datasets. Please refer to the original source as presented in our manuscript for these datasets.

We adapted the scripts from LESSR for the preprocessing.

You can find them in the "preprocess" fold

Example

Please refer to the following example on how to train and evaluate $P^2MAM\text{-}O$, $P^2MAM\text{-}P$ and $P^2MAM\text{-}O\text{-}P$ on Diginetica.

Please change the value of "data", and the hyper parameters (e.g., max_len for $n$) as presented in our appendix to reproduce the results on the other datasets.

You are recommended to run the code using GPUs.

$P^2MAM\text{-}O$:

python run.py --data=digitenica --n_epoch=60 --dim=128 --max_len=10 --isTrain=0 --model=P2MAMO --num_heads=1

$P^2MAM\text{-}P$:

python run.py --data=digitenica --n_epoch=60 --dim=128 --max_len=10 --isTrain=0 --model=P2MAMP --num_heads=1

$P^2MAM\text{-}O\text{-}P$:

python run.py --data=diginetica --n_epoch=60 --dim=128 --max_len=15 --isTrain=0 --model=P2MAMOP --num_heads=8

p2mam's People

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.