Git Product home page Git Product logo

deeprank's Introduction

DeepRank

中文讲解请移步我的博客:http://snailwish.com/149/

DeepRank: Learning to Rank with Neural Networks for Recommendation

  • Run listwise DeepRank:

$ python DeepRank.py --path datasets --data_name ml-100k/u.data --epoches 40 --batch_size 512 --user_factors 16 --item_factors 16 --layers [16,8] --reg 0.00001 --list_length 5 --num_positive 2 --sample_time 2 --top_n 10 --lr 0.01 --path_model model

  • Run pairwise DeepRank:

$ python DeepRank.py --path datasets --data_name ml-100k/u.data --epoches 40 --batch_size 512 --user_factors 16 --item_factors 16 --layers [16,8] --reg 0.00001 --list_length 2 --num_positive 1 --sample_time 4 --top_n 10 --lr 0.01 --path_model model

Parameter description:

  • path:Input data path.
  • data_name:Name of dataset
  • epoches:Number of epoches.
  • batch_size:Batch size.
  • user_factors:Embedding size of users.
  • item_factors: Embedding size of items.
  • layers:Size of each layer. Note that the first hidden layer is the interaction layer.
  • reg: Regularization for user and item embeddings.
  • list_length: Length of list for training. In pairwise DeepRank list_length=2; in listwise DeepRank list_length>2.
  • num_positive: Number of positive instances in training list. In pairwise DeepRank num_positive=1;
  • sample_time: Time of sample from instances.
  • top_n: Number of top_n list for recommendation.
  • lr: Learning rate.
  • path_model: Output path for saving pre_trained model.

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.