QuickRank  v2.0
QuickRank: A C++ suite of Learning to Rank algorithms
ensemble_pruning_factory.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 * Contributors:
20 * - Salvatore Trani(salvatore.trani@isti.cnr.it)
21 */
22 #pragma once
23 
24 #include "pugixml/src/pugixml.hpp"
25 
29 
30 #include <memory>
31 
32 namespace quickrank {
33 namespace optimization {
34 namespace post_learning {
35 namespace pruning {
36 
37 std::shared_ptr<quickrank::optimization::Optimization> create_pruner(
38  const pugi::xml_document &model);
39 
40 std::shared_ptr<quickrank::optimization::Optimization> create_pruner(
41  Cleaver::PruningMethod pruningMethod, double pruning_rate,
42  std::shared_ptr<learning::linear::LineSearch> lineSearch);
43 
44 std::shared_ptr<quickrank::optimization::Optimization> create_pruner(
45  Cleaver::PruningMethod pruningMethod, double pruning_rate);
46 
47 std::shared_ptr<quickrank::optimization::Optimization> create_pruner(
48  std::string pruningMethodName, double pruning_rate,
49  std::shared_ptr<learning::linear::LineSearch> lineSearch);
50 
51 std::shared_ptr<quickrank::optimization::Optimization> create_pruner(
52  std::string pruningMethodName, double pruning_rate);
53 
54 }
55 }
56 }
57 }
Definition: dataset.cc:28
std::shared_ptr< quickrank::optimization::Optimization > create_pruner(const pugi::xml_document &model)
Definition: ensemble_pruning_factory.cc:36