aGrUM  0.20.2
a C++ library for (probabilistic) graphical models
treeRegress.h
Go to the documentation of this file.
1 /**
2  *
3  * Copyright 2005-2020 Pierre-Henri WUILLEMIN(@LIP6) & Christophe GONZALES(@AMU)
4  * info_at_agrum_dot_org
5  *
6  * This library is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU Lesser General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this library. If not, see <http://www.gnu.org/licenses/>.
18  *
19  */
20 
21 
22 /**
23  * @file
24  * @brief Class used to compute the operation between two decision diagrams
25  *
26  * @author Pierre-Henri WUILLEMIN(@LIP6) and Jean-Christophe MAGNAN and Christophe
27  * GONZALES(@AMU)
28  * @author Christophe GONZALES(@AMU) and Pierre-Henri WUILLEMIN(@LIP6)
29  */
30 
31 #ifndef GUM_TREE_REGRESS_H
32 #define GUM_TREE_REGRESS_H
33 
34 #include <functional>
35 
36 #include <agrum/tools/multidim/implementations/multiDimFunctionGraph.h>
37 #include <agrum/tools/multidim/utils/FunctionGraphUtilities/terminalNodePolicies/ExactTerminalNodePolicy.h>
38 
39 namespace gum {
40 
41  /**
42  * @class TreeRegress
43  * @headerfile treeRegress.h <agrum/tools/multidim/patterns/treeRegress.h>
44  * @ingroup multidim_group
45  *
46  * @brief Class used to perform Decision Tree Regression in the FMDP Framework
47  */
48  template < typename GUM_SCALAR,
49  template < typename >
50  class COMBINEOPERATOR,
51  template < typename >
52  class PROJECTOPERATOR,
53  template < typename > class TerminalNodePolicy
55  class TreeRegress {
56  public:
57  // ============================================================================
58  /// @name Constructors / Destructors
59  // ============================================================================
60  /// @{
61 
62  /// Default constructor.
64  const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy >* qAction,
65  const Bijection<
66  const DiscreteVariable*,
68 
69  /// Default destructor.
70  ~TreeRegress();
71 
72  /// @}
73  // ============================================================================
74  /// @name Main Method
75  // ============================================================================
76  /// @{
77 
78  /// Computes and builds the Function Graph that is the result of the
79  /// operation
81 
82  /// @}
83 
84  private:
85  /// The whatever 1
88 
89  /// The function graphs used for the operation
91  const Bijection<
92  const DiscreteVariable*,
96  };
97 
98 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
99  extern template class TreeRegress< double, std::multiplies, std::plus >;
100 #endif
101 
102 } // namespace gum
103 
104 #include <agrum/tools/multidim/utils/FunctionGraphUtilities/operators/treeRegress_tpl.h>
105 
106 #endif // GUM_REGRESS_H
MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * xPloreVFunc__(NodeId currentNodeId)
The whatever 1.
INLINE void emplace(Args &&... args)
Definition: set_tpl.h:669
HashTable< const DiscreteVariable *, Idx > context__
Definition: treeRegress.h:95
TreeRegress(const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > *qAction, const Bijection< const DiscreteVariable *, const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * > pxi)
Default constructor.
const Bijection< const DiscreteVariable *, const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > *> pxi__
Definition: treeRegress.h:94
~TreeRegress()
Default destructor.
MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * compute()
Computes and builds the Function Graph that is the result of the operation.
const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * vFunc__
The function graphs used for the operation.
Definition: treeRegress.h:90