Git Product home page Git Product logo

l2r's Introduction

ReadMe

This repository is used to share some L2R algorithms implemted by Python.

So far, this repository contains RankNet , LambdaRank and LambdaMART

RankNet

I utilize Pytorch to implement the network structure.

In order to use the interface, you should input following parameters:

  • n_feaure: int, features numble
  • h1_units: int, the unit numbers of hidden layer1
  • h2_units: int, the unit numbers of hidden layer2
  • epoch: int, iteration times
  • learning_rate: float, learning rate
  • plot: boolean, whether plot the loss.

LambdaRank

The usage is similar with RankNet.

LambdaMart

This is a Python version of LambdaMART.

I implement it based on the code of lezzago

‼️I have made some modification because I think there is a mistake on calculating $\lambda$ in lezzago's code.

Dataset

The dataset is the same as that of lezzago. I have preprocessed it and store in train.npy and test.npy.

You can directly used np.load() to import dataset.

The first column is label, the second column is qid, and the following columns are features (total 46 features).

l2r's People

Contributors

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