![]() |
QuickRank
v2.0
QuickRank: A C++ suite of Learning to Rank algorithms
|
This class generates a ranked list of results. More...
#include <rankedresults.h>
Public Member Functions | |
| RankedResults (std::shared_ptr< QueryResults > results, Score *scores) | |
| Generates a Ranked Results list. More... | |
| virtual | ~RankedResults () |
| Label * | sorted_labels () const |
| Score * | sorted_scores () const |
| const size_t | pos_of_rank (const size_t rank) const |
| const size_t | num_results () const |
Private Attributes | |
| Label * | labels_ = NULL |
| Score * | scores_ = NULL |
| size_t | num_results_ |
| size_t * | unmap_ = NULL |
This class generates a ranked list of results.
This class does not carry information about the actual features, but only about the labels and the scores generated by a ranker (this is why this is not (yet) a subclass of QueryResults).
| quickrank::data::RankedResults::RankedResults | ( | std::shared_ptr< QueryResults > | results, |
| Score * | scores | ||
| ) |
Generates a Ranked Results list.
This is actually used to sort QueryResults and to store labels and scores in sorted order. It generates a copy of original data and scores which might be useful for caching. It also provides an un-mapping function.
| n_instances | The number of training instances (lines) in the dataset. |
| n_features | The number of features. |
|
virtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
|
private |
|
private |
1.8.11