This class is a code generator on QuickRank XML files.
More...
#include <generate_oblivious.h>
This class is a code generator on QuickRank XML files.
The XML format is used for loading and storing ranking models.
void quickrank::io::GenOblivious::generate_oblivious_code |
( |
const std::string |
model_filename, |
|
|
const std::string |
code_filename |
|
) |
| |
Generates the C++ implementation of the model scoring function.
This applies to forests of oblivious trees.
- Parameters
-
model_filename | Previously saved XML ranker model. |
code_filename | Output source code file name. |
void quickrank::io::GenOblivious::model_tree_get_feature_ids |
( |
pugi::xml_node & |
split_xml, |
|
|
std::vector< unsigned int > & |
features |
|
) |
| |
|
private |
void quickrank::io::GenOblivious::model_tree_get_leaves |
( |
pugi::xml_node & |
split_xml, |
|
|
std::vector< std::string > & |
leaves |
|
) |
| |
|
private |
void quickrank::io::GenOblivious::model_tree_get_thresholds |
( |
pugi::xml_node & |
split_xml, |
|
|
std::vector< std::string > & |
thresholds |
|
) |
| |
|
private |
The documentation for this class was generated from the following files: