Qualia  0.2
StochasticDataSetTrainer.h
Go to the documentation of this file.
1 /*
2  * StochasticDataSetTrainer.h
3  *
4  * Trains on a DataSet using a stochastic criterion ie. trains one example
5  * at a time.
6  *
7  * This file is part of Qualia https://github.com/sofian/qualia
8  *
9  * Loosely based on code from Torch 3.1
10  * (c) 2013 Sofian Audry -- info(@)sofianaudry(.)com
11  * (c) 2003--2004 Ronan Collobert (collober@idiap.ch)
12  *
13  * This program is free software: you can redistribute it and/or modify
14  * it under the terms of the GNU General Public License as published by
15  * the Free Software Foundation, either version 3 of the License, or
16  * (at your option) any later version.
17  *
18  * This program is distributed in the hope that it will be useful,
19  * but WITHOUT ANY WARRANTY; without even the implied warranty of
20  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21  * GNU General Public License for more details.
22  *
23  * You should have received a copy of the GNU General Public License
24  * along with this program. If not, see <http://www.gnu.org/licenses/>.
25  */
26 
27 #ifndef STOCHASTICDATASETTRAINER_H_
28 #define STOCHASTICDATASETTRAINER_H_
29 
30 #include "DataSetTrainer.h"
31 
36 public:
38  virtual ~StochasticDataSetTrainer();
39 
40  virtual void trainExample(real* example) = 0;
41 
42  virtual void _doTrainEpisode(DataSet* data);
43 };
44 
45 #endif /* STOCHASTICDATASETTRAINER_H_ */