26 #include "pugixml/src/pugixml.hpp" 33 void push(
RTNode *root,
const double weight,
const float maxlabel);
45 const size_t offset = 1)
const;
47 virtual std::shared_ptr<std::vector<quickrank::Score>>
49 const size_t offset = 1)
const;
52 bool skip_useless_trees =
true)
const;
55 std::shared_ptr<std::vector<double>> weights);
57 virtual std::shared_ptr<std::vector<double>>
get_weights()
const;
61 wt(
RTNode *root,
double weight,
float maxlabel)
68 float maxlabel = 0.0f;
virtual bool update_ensemble_weights(std::shared_ptr< std::vector< double >> weights)
Definition: ensemble.cc:89
size_t get_size() const
Definition: ensemble.h:36
float Feature
data type for instance predicted label
Definition: types.h:31
Definition: ensemble.h:28
double Score
data type for instance truth label
Definition: types.h:30
pugi::xml_node append_xml_model(pugi::xml_node parent, bool skip_useless_trees=true) const
Definition: ensemble.cc:69
virtual std::shared_ptr< std::vector< quickrank::Score > > partial_scores_instance(const quickrank::Feature *d, const size_t offset=1) const
Definition: ensemble.cc:61
Definition: ensemble.h:60
void push(RTNode *root, const double weight, const float maxlabel)
Definition: ensemble.cc:42
bool is_notempty() const
Definition: ensemble.h:40
void set_capacity(const size_t n)
Definition: ensemble.cc:33
wt * arr
Definition: ensemble.h:71
size_t size
Definition: ensemble.h:70
virtual quickrank::Score score_instance(const quickrank::Feature *d, const size_t offset=1) const
Definition: ensemble.cc:51
void pop()
Definition: ensemble.cc:46
virtual ~Ensemble()
Definition: ensemble.cc:27
virtual std::shared_ptr< std::vector< double > > get_weights() const
Definition: ensemble.cc:104
wt(RTNode *root, double weight, float maxlabel)
Definition: ensemble.h:61