Git Product home page Git Product logo

drr's Introduction

drr

code for the paper "Personalized Re-ranking for E-commerce Recommendation Systems"

dataset

the toy data for training/validation/test

rec_train_set.sample.data 8000 lines

rec_validation_set.sample.data 1000 lines

rec_test_set.sample.data 1000 lines

train

1. drr-base

python main.py --train true --train_set dataset/rec_train_set.sample.txt --validation_set dataset/rec_validation_set.sample.txt --model_type 0 --batch_size 128 --train_epochs 10 --train_steps_per_epoch 10 --validation_steps 15 --early_stop_patience 3 --lr_per_step 1000 --saved_model_name drr_model_0.h5

2. drr-personalized-v1

python main.py --train true --train_set dataset/rec_train_set.sample.txt --validation_set dataset/rec_validation_set.sample.txt --model_type 1 --batch_size 128 --train_epochs 10 --train_steps_per_epoch 10 --validation_steps 15 --early_stop_patience 3 --lr_per_step 1000 --saved_model_name drr_model_1.h5

3. drr-personalized-v2

python main.py --train true --train_set dataset/rec_train_set.sample.txt --validation_set dataset/rec_validation_set.sample.txt --model_type 2 --batch_size 128 --train_epochs 10 --train_steps_per_epoch 10 --validation_steps 15 --early_stop_patience 3 --lr_per_step 1000 --d_feature 19 --saved_model_name drr_model_2.h5

test

1. drr-base

python main.py --test_set dataset/rec_test_set.sample.txt --batch_size 2 --model_type 0 --saved_model_name drr_model_0.h5

2. drr-peronalized-v1

python main.py --test_set dataset/rec_test_set.sample.txt --batch_size 2 --model_type 1 --saved_model_name drr_model_1.h5

3. drr-personalized-v2

python main.py --test_set dataset/rec_test_set.sample.txt --batch_size 2 --model_type 2 --saved_model_name drr_model_2.h5 --d_feature 19

metric evaluation (including Precision/MAP)

python metric.py dataset/rec_test_set.sample.txt.predict.out

drr's People

Contributors

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