SearchPioneer.RankLib.Cli 1.0.0-alpha.2

Prefix Reserved
This is a prerelease version of SearchPioneer.RankLib.Cli.
dotnet tool install --global SearchPioneer.RankLib.Cli --version 1.0.0-alpha.2                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local SearchPioneer.RankLib.Cli --version 1.0.0-alpha.2                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=SearchPioneer.RankLib.Cli&version=1.0.0-alpha.2&prerelease                
nuke :add-package SearchPioneer.RankLib.Cli --version 1.0.0-alpha.2                

RankLib for .NET

NuGet Release Build Status license badge docs

Ranklib for .NET is a hardened port to .NET of RankLib, a popular open source learning to rank library written in Java. It maintains compatibility with input and output files of RankLib, allowing it to be used to integrate with systems that use RankLib, such as the Elasticsearch Learning to Rank and OpenSearch Learning to Rank plugins.

RankLib is available as both a command line tool for training and evaluating rankers, as well as a library for incorporating into solutions.

Installation

Library

To add as a library to an existing project

dotnet add package SearchPioneer.RankLib --prerelease

Command Line Tool

To add as a global .NET command line tool

dotnet tool install -g SearchPioneer.RankLib.Cli --prerelease

To see all the commands supported by the command line tool

dotnet-ranklib --help

What is Learning to Rank (LTR)?

Learning to Rank (LTR) is a technique in machine learning that trains models to optimize the ranking order of items in a list based on relevance to a specific query or user intent. The goal is to improve the quality of search results, recommendations, and other ranked lists by understanding and modeling what users find most relevant or useful. LTR is widely used in search engines, recommendation systems, and information retrieval to enhance user satisfaction and engagement.

Algorithms and Metrics

The following ranking algorithms are implemented

  1. MART (Multiple Additive Regression Trees, a.k.a. Gradient Boosted Decision Trees (GBDT))
  2. RankNet
  3. LambdaRank
  4. RankBoost
  5. AdaRank
  6. Coordinate Ascent
  7. LambdaMART
  8. ListNet
  9. Random Forests

The following metrics are implemented to measure the effectiveness of ranking

  1. Average Precision (MAP)
  2. Best at K (Best@K)
  3. Discounted Cumulative Gain (DCG@K)
  4. Expected Reciprocal Rank (ERR@K)
  5. Normalized Discounted Cumulative Gain (NDCG@K)
  6. Precision at K (P@K)
  7. Reciprocal Rank (RR)
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
1.0.0-alpha.2 36 11/20/2024
1.0.0-alpha.1 35 11/18/2024