aGrUM  0.14.2
BNLearnerListener.h
Go to the documentation of this file.
1 /*
2  <one line to give the program's name and a brief idea of what it does.>
3  Copyright (C) 2012 Pierre-Henri WUILLEMIN <pierre-henri.wuillemin@lip6.fr>
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
26 #ifndef BNLEARNERLISTENER_H
27 #define BNLEARNERLISTENER_H
28 
29 #include <agrum/agrum.h>
32 
33 namespace gum {
34  namespace learning {
35  class genericBNLearner;
36 
45  public:
47  virtual ~BNLearnerListener();
48 
49  virtual void whenProgress(const void* src,
50  const Size pourcent,
51  const double error,
52  const double time) final;
53  virtual void whenStop(const void* src, const std::string message) final;
54 
55  private:
58 
60  };
61  } // namespace learning
62 } // namespace gum
63 
64 #endif // BNLEARNERLISTENER_H
This file contains general scheme for iteratively convergent algorithms.
gum::ApproximationSchemeListener header file.
BNLearnerListener & operator=(const BNLearnerListener &other)
Approximation Scheme.
A class that redirects gum_signal from algorithms to the listeners of BNLearn.
gum is the global namespace for all aGrUM entities
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:45
The ApproximationSchemeListener class.