#include <optimization.h>
|
virtual std::ostream & | put (std::ostream &os) const =0 |
| Prints the description of Algorithm, including its parameters. More...
|
|
quickrank::optimization::Optimization::Optimization |
( |
| ) |
|
|
inline |
quickrank::optimization::Optimization::Optimization |
( |
const pugi::xml_document & |
model | ) |
|
Generates a LTR_Algorithm instance from a previously saved XML model.
virtual quickrank::optimization::Optimization::~Optimization |
( |
| ) |
|
|
virtualdefault |
quickrank::optimization::Optimization::Optimization |
( |
const Optimization & |
other | ) |
|
|
delete |
Avoid inefficient copy constructor.
virtual pugi::xml_document* quickrank::optimization::Optimization::get_xml_model |
( |
| ) |
const |
|
pure virtual |
static OptimizationAlgorithm quickrank::optimization::Optimization::getOptimizationAlgorithm |
( |
std::string |
name | ) |
|
|
inlinestatic |
static std::string quickrank::optimization::Optimization::getPruningMethod |
( |
OptimizationAlgorithm |
optAlgo | ) |
|
|
inlinestatic |
virtual bool quickrank::optimization::Optimization::is_pre_learning |
( |
| ) |
const |
|
pure virtual |
std::shared_ptr< Optimization > quickrank::optimization::Optimization::load_model_from_file |
( |
std::string |
model_filename | ) |
|
|
static |
Load a model from a given XML file.
- Parameters
-
model_filename | The input file name. |
virtual std::string quickrank::optimization::Optimization::name |
( |
| ) |
const |
|
pure virtual |
virtual bool quickrank::optimization::Optimization::need_partial_score_dataset |
( |
| ) |
const |
|
pure virtual |
Avoid inefficient copy assignment.
Executes the optimization process.
- Parameters
-
training_dataset | The training dataset. |
validation_dataset | The validation dataset. |
metric | The metric to be optimized. |
partial_save | Allows to save a partial model every given number of iterations. |
model_filename | The file where the model, and the partial models, are saved. |
virtual std::ostream& quickrank::optimization::Optimization::put |
( |
std::ostream & |
os | ) |
const |
|
protectedpure virtual |
void quickrank::optimization::Optimization::save |
( |
std::string |
model_filename, |
|
|
int |
suffix = -1 |
|
) |
| const |
|
virtual |
Save the current model to the output_file.
- Parameters
-
model_filename | The output file name. |
suffix | The suffix used to identify partial model saves. |
std::ostream& operator<< |
( |
std::ostream & |
os, |
|
|
const Optimization & |
a |
|
) |
| |
|
friend |
The output stream operator.
const std::vector< std::string > quickrank::optimization::Optimization::optimizationAlgorithmNames |
|
static |
The documentation for this class was generated from the following files: