aGrUM  0.16.0
BNLearnerListener.h
Go to the documentation of this file.
1 
22 /*
23  <one line to give the program's name and a brief idea of what it does.>
24  Copyright (C) 2012 Pierre-Henri WUILLEMIN <pierre-henri.wuillemin@lip6.fr>
25 
26  This program is free software: you can redistribute it and/or modify
27  it under the terms of the GNU General Public License as published by
28  the Free Software Foundation, either version 3 of the License, or
29  (at your option) any later version.
30 
31  This program is distributed in the hope that it will be useful,
32  but WITHOUT ANY WARRANTY; without even the implied warranty of
33  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34  GNU General Public License for more details.
35 
36  You should have received a copy of the GNU General Public License
37  along with this program. If not, see <http://www.gnu.org/licenses/>.
38 */
39 
47 #ifndef BNLEARNERLISTENER_H
48 #define BNLEARNERLISTENER_H
49 
50 #include <agrum/agrum.h>
53 
54 namespace gum {
55  namespace learning {
56  class genericBNLearner;
57 
66  public:
68  virtual ~BNLearnerListener();
69 
70  virtual void whenProgress(const void* src,
71  const Size pourcent,
72  const double error,
73  const double time) final;
74  virtual void whenStop(const void* src, const std::string message) final;
75 
76  private:
79 
81  };
82  } // namespace learning
83 } // namespace gum
84 
85 #endif // BNLEARNERLISTENER_H
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
BNLearnerListener & operator=(const BNLearnerListener &other)
Approximation Scheme.
A class that redirects gum_signal from algorithms to the listeners of BNLearn.
Copyright 2005-2019 Pierre-Henri WUILLEMIN et Christophe GONZALES (LIP6) {prenom.nom}_at_lip6.fr.
Definition: agrum.h:25
BNLearnerListener(genericBNLearner *bnl, ApproximationScheme &sch)
virtual void whenStop(const void *src, const std::string message) final
When it stops.
A pack of learning algorithms that can easily be used.
virtual void whenProgress(const void *src, const Size pourcent, const double error, const double time) final
When progress was made.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Definition: types.h:48
The ApproximationSchemeListener class.