QuickRank  v2.0
QuickRank: A C++ suite of Learning to Rank algorithms
generate_vpred.h
Go to the documentation of this file.
1 /*
2  * QuickRank - A C++ suite of Learning to Rank algorithms
3  * Webpage: http://quickrank.isti.cnr.it/
4  * Contact: quickrank@isti.cnr.it
5  *
6  * Unless explicitly acquired and licensed from Licensor under another
7  * license, the contents of this file are subject to the Reciprocal Public
8  * License ("RPL") Version 1.5, or subsequent versions as allowed by the RPL,
9  * and You may not copy or use this file in either source code or executable
10  * form, except in compliance with the terms and conditions of the RPL.
11  *
12  * All software distributed under the RPL is provided strictly on an "AS
13  * IS" basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, AND
14  * LICENSOR HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
15  * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
16  * PURPOSE, QUIET ENJOYMENT, OR NON-INFRINGEMENT. See the RPL for specific
17  * language governing rights and limitations under the RPL.
18  *
19  * Contributor:
20  * HPC. Laboratory - ISTI - CNR - http://hpc.isti.cnr.it/
21  */
22 #pragma once
23 
24 namespace quickrank {
25 namespace io {
26 
27 /**
28  * This class is a code generator on QuickRank XML files.
29  *
30  * The XML format is used for loading and storing ranking models.
31  */
32 class GenVpred {
33  public:
34 
35  /// Generates the VPRED intermediate file of the given XML model.
36  /// This applies to forests of oblivious trees.
37  ///
38  /// \param model_filename Previously saved XML ranker model.
39  /// \param code_filename Output source code file name.
40  void generate_vpred_input(const std::string &ensemble_file,
41  const std::string &output_file);
42 };
43 
44 } // namespace io
45 } // namespace quickrank
Definition: dataset.cc:28
void generate_vpred_input(const std::string &ensemble_file, const std::string &output_file)
Generates the VPRED intermediate file of the given XML model.
Definition: generate_vpred.cc:90
This class is a code generator on QuickRank XML files.
Definition: generate_vpred.h:32