QuickRank  v2.0
QuickRank: A C++ suite of Learning to Rank algorithms
Classes | Public Member Functions | Private Attributes | List of all members
Ensemble Class Reference

#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
 
wtarr = NULL
 

Constructor & Destructor Documentation

Ensemble::~Ensemble ( )
virtual

Member Function Documentation

pugi::xml_node Ensemble::append_xml_model ( pugi::xml_node  parent,
bool  skip_useless_trees = true 
) const
size_t Ensemble::get_size ( ) const
inline
std::shared_ptr< std::vector< double > > Ensemble::get_weights ( ) const
virtual
bool Ensemble::is_notempty ( ) const
inline
std::shared_ptr< std::vector< quickrank::Score > > Ensemble::partial_scores_instance ( const quickrank::Feature d,
const size_t  offset = 1 
) const
virtual
void Ensemble::pop ( )
void Ensemble::push ( RTNode root,
const double  weight,
const float  maxlabel 
)
quickrank::Score Ensemble::score_instance ( const quickrank::Feature d,
const size_t  offset = 1 
) const
virtual
void Ensemble::set_capacity ( const size_t  n)
bool Ensemble::update_ensemble_weights ( std::shared_ptr< std::vector< double >>  weights)
virtual

Member Data Documentation

wt* Ensemble::arr = NULL
private
size_t Ensemble::size = 0
private

The documentation for this class was generated from the following files: