QuickRank
v2.0
QuickRank: A C++ suite of Learning to Rank algorithms
|
#include <ensemble.h>
Classes | |
struct | wt |
Public Member Functions | |
virtual | ~Ensemble () |
void | set_capacity (const size_t n) |
void | push (RTNode *root, const double weight, const float maxlabel) |
void | pop () |
size_t | get_size () const |
bool | is_notempty () const |
virtual quickrank::Score | score_instance (const quickrank::Feature *d, const size_t offset=1) const |
virtual std::shared_ptr< std::vector< quickrank::Score > > | partial_scores_instance (const quickrank::Feature *d, const size_t offset=1) const |
pugi::xml_node | append_xml_model (pugi::xml_node parent, bool skip_useless_trees=true) const |
virtual bool | update_ensemble_weights (std::shared_ptr< std::vector< double >> weights) |
virtual std::shared_ptr< std::vector< double > > | get_weights () const |
Private Attributes | |
size_t | size = 0 |
wt * | arr = NULL |
|
virtual |
pugi::xml_node Ensemble::append_xml_model | ( | pugi::xml_node | parent, |
bool | skip_useless_trees = true |
||
) | const |
|
inline |
|
virtual |
|
inline |
|
virtual |
void Ensemble::pop | ( | ) |
void Ensemble::push | ( | RTNode * | root, |
const double | weight, | ||
const float | maxlabel | ||
) |
|
virtual |
void Ensemble::set_capacity | ( | const size_t | n | ) |
|
virtual |
|
private |
|
private |