yat  0.14.5pre
BootstrapSampler.h
1 #ifndef _theplu_yat_classifier_bootstrap_sampler_
2 #define _theplu_yat_classifier_bootstrap_sampler_
3 
4 // $Id: BootstrapSampler.h 2608 2011-11-01 02:47:32Z peter $
5 
6 /*
7  Copyright (C) 2007, 2008 Jari Häkkinen, Peter Johansson
8 
9  This file is part of the yat library, http://dev.thep.lu.se/yat
10 
11  The yat library is free software; you can redistribute it and/or
12  modify it under the terms of the GNU General Public License as
13  published by the Free Software Foundation; either version 3 of the
14  License, or (at your option) any later version.
15 
16  The yat library is distributed in the hope that it will be useful,
17  but WITHOUT ANY WARRANTY; without even the implied warranty of
18  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  General Public License for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with yat. If not, see <http://www.gnu.org/licenses/>.
23 */
24 
25 #include "Sampler.h"
26 
27 namespace theplu {
28 namespace yat {
29 namespace classifier {
30 
31  class Target;
32 
41  class BootstrapSampler : public Sampler
42  {
43 
44  public:
51  BootstrapSampler(const Target& target, const size_t N);
52 
56  virtual ~BootstrapSampler();
57 
58  private:
59  void build(const Target& target, size_t N);
60 
61  };
62 
63 }}} // of namespace classifier, yat, and theplu
64 #endif
BootstrapSampler(const Target &target, const size_t N)
Constructor.
Class for containing sample labels.
Definition: Target.h:47
Class creating trainingset and validationset using bootstrapping.
Definition: BootstrapSampler.h:41
Interface class for dividing samples into training and validation.
Definition: Sampler.h:39
const Target & target(void) const

Generated on Tue Sep 26 2017 02:33:29 for yat by  doxygen 1.8.5