项目作者: Nakilon

项目描述 :
PCBR (Pairs Comparison Based Rating) Ruby gem
高级语言: Ruby
项目地址: git://github.com/Nakilon/pcbr.git
创建时间: 2016-06-22T02:02:19Z
项目社区:https://github.com/Nakilon/pcbr

开源协议:

下载


PCBR (Pairs Comparison Based Rating)

You often need to sort an array of vectors. This allows you to do it without knowing the optimal ranking function and with some pairs of vectors that are not even comparable.

Examples

See describe "examples" do in specs.

Don’t mutate the key objects after you store them in PCBR instance.

How it works

The first idea was in 2013 — at that time I was imagining it as a tree data structure. Later in May 2015 I’ve realised that it’s really about dots in n-dimensional space and sectors, and round-robin. Applying it to Reddit RSS feed made it 50% more interesting. It also applied well to boost tree search process in the bad Facebook advertisment classifier production project. Since then I mostly use it to oprimize tree searches, it’s basically an automated replacement for euristics.

Installation

  1. gem install pcbr

Testing

  1. ruby test.rb

TODO

Add illustrate to this README.
Add Github Action.