Giter Club home page Giter Club logo

mlm4rec's Introduction

MLM4Rec

The source code for our DASFFA Submission 65 Paper "Learning Global and Multi-granularity Local Representation with MLP for Sequential Recommendation"

Requirements

  • Install Python, Pytorch(>=1.8). We use Python 3.7, Pytorch 1.8.
  • If you plan to use GPU computation, install CUDA.

Quick-Start

If you have downloaded the source codes, you can train the model just with data_name input.

python main.py --data_name=[data_name]

If you want to change the parameters, just set the additional command parameters as you need. For example:

python main.py --data_name=Beauty --num_hidden_layers=4 --batch_size=512

We present the optimal models on the three datasets and their experimental results. You can test the model has been saved by command line.

Beauty:

python main.py --data_name=Beauty --do_eval --load_model=MLM4Rec-Beauty-0 --hidden_size=192 --cmlp_type=3 --data_aug

Yelp:

python main.py --data_name=Yelp --do_eval --load_model=MLM4Rec-Yelp-0 --cmlp_type=2 --max_seq_length=30 --data_aug

ml-1m:

python main.py --data_name=ml-1m --do_eval --load_model=MLM4Rec-ml-1m-0 --cmlp_type=2 --max_seq_length=300 --hidden_dropout_prob=0.2

Additional hyper-parameters can be specified, and detailed information can be accessed by:

python main.py --help

mlm4rec's People

Watchers

 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.