aGrUM
3.3.2
a C++ library for (probabilistic) graphical models
Toggle main menu visibility
ConstraintBasedLearning_tpl.h
Go to the documentation of this file.
1
#pragma once
2
3
#include <
agrum/BN/BayesNet.h
>
4
#include <
agrum/BN/learning/ConstraintBasedLearning.h
>
// to ease IDE parser
5
#include <
agrum/BN/learning/paramUtils/DAG2BNLearner.h
>
6
7
namespace
gum
{
8
9
namespace
learning
{
10
11
template
< GUM_Numeric GUM_SCALAR,
typename
PARAM_ESTIMATOR >
12
BayesNet< GUM_SCALAR >
ConstraintBasedLearning::learnBN
(PARAM_ESTIMATOR& estimator,
13
MixedGraph
graph
) {
14
return
DAG2BNLearner::createBN< GUM_SCALAR >
(estimator,
learnDAG
(
graph
));
15
}
16
17
}
/* namespace learning */
18
19
}
/* namespace gum */
20
21
/****************************************************************************
22
* This file is part of the aGrUM/pyAgrum library. *
23
* *
24
* Copyright (c) 2005-2026 by *
25
* - Pierre-Henri WUILLEMIN(_at_LIP6) *
26
* - Christophe GONZALES(_at_AMU) *
27
* *
28
* The aGrUM/pyAgrum library is free software; you can redistribute it *
29
* and/or modify it under the terms of either : *
30
* *
31
* - the GNU Lesser General Public License as published by *
32
* the Free Software Foundation, either version 3 of the License, *
33
* or (at your option) any later version, *
34
* - the MIT license (MIT), *
35
* - or both in dual license, as here. *
36
* *
37
* (see https://agrum.gitlab.io/articles/dual-licenses-lgplv3mit.html) *
38
* *
39
* This aGrUM/pyAgrum library is distributed in the hope that it will be *
40
* useful, but WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, *
41
* INCLUDING BUT NOT LIMITED TO THE WARRANTIES MERCHANTABILITY or FITNESS *
42
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE *
43
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER *
44
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, *
45
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR *
46
* OTHER DEALINGS IN THE SOFTWARE. *
47
* *
48
* See LICENCES for more details. *
49
* *
50
* SPDX-FileCopyrightText: Copyright 2005-2026 *
51
* - Pierre-Henri WUILLEMIN(_at_LIP6) *
52
* - Christophe GONZALES(_at_AMU) *
53
* SPDX-License-Identifier: LGPL-3.0-or-later OR MIT *
54
* *
55
* Contact : info_at_agrum_dot_org *
56
* homepage : http://agrum.gitlab.io *
57
* gitlab : https://gitlab.com/agrumery/agrum *
58
* *
59
****************************************************************************/
BayesNet.h
Class representing Bayesian networks.
ConstraintBasedLearning.h
Abstract base class for constraint-based structure learning algorithms.
DAG2BNLearner.h
A class that, given a structure and a parameter estimator returns a full Bayes net.
gum::MixedGraph
Base class for mixed graphs.
Definition
mixedGraph.h:150
gum::learning::ConstraintBasedLearning::learnBN
BayesNet< GUM_SCALAR > learnBN(PARAM_ESTIMATOR &estimator, MixedGraph graph)
learns structure then estimates parameters
Definition
ConstraintBasedLearning_tpl.h:12
gum::learning::ConstraintBasedLearning::learnDAG
DAG learnDAG(MixedGraph graph)
learns a DAG
Definition
ConstraintBasedLearning.cpp:141
gum::learning::DAG2BNLearner::createBN
static BayesNet< GUM_SCALAR > createBN(ParamEstimator &estimator, const DAG &dag)
create a BN from a DAG using a one pass generator (typically ML)
Definition
DAG2BNLearner_tpl.h:76
gum::graph
Definition
bayesBall.h:79
gum::learning
include the inlined functions if necessary
Definition
CSVParser.h:55
gum
gum is the global namespace for all aGrUM entities
Definition
agrum.h:46
aGrUM
3.3.2
© PHW&CG&others - 2022
DoXyGeN 1.18.0