54 virtual std::string
name()
const {
67 virtual void learn(std::shared_ptr<data::Dataset> training_dataset,
68 std::shared_ptr<data::Dataset> validation_dataset,
69 std::shared_ptr<metric::ir::Metric> metric,
71 const std::string model_filename);
91 virtual std::ostream &
put(std::ostream &os)
const;
Definition: custom_ltr.h:43
Definition: dataset.cc:28
const Score FIXED_SCORE
Definition: custom_ltr.h:81
virtual void learn(std::shared_ptr< data::Dataset > training_dataset, std::shared_ptr< data::Dataset > validation_dataset, std::shared_ptr< metric::ir::Metric > metric, size_t partial_save, const std::string model_filename)
Executes the learning process.
Definition: custom_ltr.cc:44
virtual std::ostream & put(std::ostream &os) const
Prints the description of Algorithm, including its parameters.
Definition: custom_ltr.cc:39
static const std::string NAME_
Definition: custom_ltr.h:58
Definition: ltr_algorithm.h:33
virtual Score score_document(const Feature *d) const
Returns the score of a given document.
Definition: custom_ltr.cc:81
float Feature
data type for instance predicted label
Definition: types.h:31
CustomLTR(const pugi::xml_document &model)
Definition: custom_ltr.h:48
friend std::ostream & operator<<(std::ostream &os, const CustomLTR &a)
The output stream operator.
Definition: custom_ltr.h:86
double Score
data type for instance truth label
Definition: types.h:30
CustomLTR()
Definition: custom_ltr.cc:33
virtual std::string name() const
Returns the name of the ranker.
Definition: custom_ltr.h:54
virtual ~CustomLTR()
Definition: custom_ltr.cc:36
virtual pugi::xml_document * get_xml_model() const
Return the xml model representing the current object.
Definition: custom_ltr.cc:85