aGrUM  0.21.0
a C++ library for (probabilistic) graphical models
treeRegress.h
Go to the documentation of this file.
1 /**
2  *
3  * Copyright (c) 2005-2021 by 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 = ExactTerminalNodePolicy >
54  class TreeRegress {
55  public:
56  // ============================================================================
57  /// @name Constructors / Destructors
58  // ============================================================================
59  /// @{
60 
61  /// Default constructor.
63  const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy >* qAction,
64  const Bijection< const DiscreteVariable*,
66 
67  /// Default destructor.
68  ~TreeRegress();
69 
70  /// @}
71  // ============================================================================
72  /// @name Main Method
73  // ============================================================================
74  /// @{
75 
76  /// Computes and builds the Function Graph that is the result of the
77  /// operation
79 
80  /// @}
81 
82  private:
83  /// The whatever 1
85 
86  /// The function graphs used for the operation
88  const Bijection< const DiscreteVariable*,
92  };
93 
94 #ifndef GUM_NO_EXTERN_TEMPLATE_CLASS
95  extern template class TreeRegress< double, std::multiplies, std::plus >;
96 #endif
97 
98 } // namespace gum
99 
100 #include <agrum/tools/multidim/utils/FunctionGraphUtilities/operators/treeRegress_tpl.h>
101 
102 #endif // GUM_REGRESS_H
INLINE void emplace(Args &&... args)
Definition: set_tpl.h:643
MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * _xPloreVFunc_(NodeId currentNodeId)
The whatever 1.
TreeRegress(const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > *qAction, const Bijection< const DiscreteVariable *, const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * > pxi)
Default constructor.
~TreeRegress()
Default destructor.
const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * _vFunc_
The function graphs used for the operation.
Definition: treeRegress.h:87
HashTable< const DiscreteVariable *, Idx > _context_
Definition: treeRegress.h:91
MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > * compute()
Computes and builds the Function Graph that is the result of the operation.
const Bijection< const DiscreteVariable *, const MultiDimFunctionGraph< GUM_SCALAR, TerminalNodePolicy > *> _pxi_
Definition: treeRegress.h:90