yat/classifier/FeatureSelectorRandom.h

Code
Comments
Other
Rev Date Author Line
680 11 Oct 06 jari 1 #ifndef _theplu_yat_classifier_featureselector_random_
680 11 Oct 06 jari 2 #define _theplu_yat_classifier_featureselector_random_
642 07 Sep 06 peter 3
642 07 Sep 06 peter 4 // $Id$
642 07 Sep 06 peter 5
675 10 Oct 06 jari 6 /*
4359 23 Aug 23 peter 7   Copyright (C) 2006 Jari Häkkinen, Peter Johansson
4359 23 Aug 23 peter 8   Copyright (C) 2007 Peter Johansson
4359 23 Aug 23 peter 9   Copyright (C) 2008 Jari Häkkinen, Peter Johansson
675 10 Oct 06 jari 10
1437 25 Aug 08 peter 11   This file is part of the yat library, http://dev.thep.lu.se/yat
675 10 Oct 06 jari 12
675 10 Oct 06 jari 13   The yat library is free software; you can redistribute it and/or
675 10 Oct 06 jari 14   modify it under the terms of the GNU General Public License as
1486 09 Sep 08 jari 15   published by the Free Software Foundation; either version 3 of the
675 10 Oct 06 jari 16   License, or (at your option) any later version.
675 10 Oct 06 jari 17
675 10 Oct 06 jari 18   The yat library is distributed in the hope that it will be useful,
675 10 Oct 06 jari 19   but WITHOUT ANY WARRANTY; without even the implied warranty of
675 10 Oct 06 jari 20   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
675 10 Oct 06 jari 21   General Public License for more details.
675 10 Oct 06 jari 22
675 10 Oct 06 jari 23   You should have received a copy of the GNU General Public License
1487 10 Sep 08 jari 24   along with yat. If not, see <http://www.gnu.org/licenses/>.
675 10 Oct 06 jari 25 */
675 10 Oct 06 jari 26
642 07 Sep 06 peter 27 #include "FeatureSelector.h"
642 07 Sep 06 peter 28
642 07 Sep 06 peter 29 namespace theplu {
680 11 Oct 06 jari 30 namespace yat {
642 07 Sep 06 peter 31 namespace classifier {
642 07 Sep 06 peter 32
642 07 Sep 06 peter 33   ///
642 07 Sep 06 peter 34   /// @brief Class for selection features by random.
642 07 Sep 06 peter 35   ///
642 07 Sep 06 peter 36   class FeatureSelectorRandom : public FeatureSelector
642 07 Sep 06 peter 37   {
642 07 Sep 06 peter 38   public:
4200 19 Aug 22 peter 39     ///
4200 19 Aug 22 peter 40     /// @brief Default Constructor
4200 19 Aug 22 peter 41     ///
642 07 Sep 06 peter 42     /// @param N number of features to select
642 07 Sep 06 peter 43     ///
642 07 Sep 06 peter 44     FeatureSelectorRandom(size_t N);
642 07 Sep 06 peter 45
642 07 Sep 06 peter 46     ///
642 07 Sep 06 peter 47     ///
642 07 Sep 06 peter 48     ///
642 07 Sep 06 peter 49     void update(const MatrixLookup& data, const Target& target);
642 07 Sep 06 peter 50
642 07 Sep 06 peter 51     ///
642 07 Sep 06 peter 52     ///
642 07 Sep 06 peter 53     ///
642 07 Sep 06 peter 54     void update(const MatrixLookupWeighted& data, const Target& target);
642 07 Sep 06 peter 55
642 07 Sep 06 peter 56   private:
642 07 Sep 06 peter 57     /// Copy Constructor not implemented
642 07 Sep 06 peter 58     FeatureSelectorRandom(const FeatureSelectorRandom&);
642 07 Sep 06 peter 59
642 07 Sep 06 peter 60     /// Assignment operator not implemented
642 07 Sep 06 peter 61     FeatureSelectorRandom& operator=(const FeatureSelectorRandom&);
642 07 Sep 06 peter 62
642 07 Sep 06 peter 63     void update(size_t);
642 07 Sep 06 peter 64
642 07 Sep 06 peter 65   };
642 07 Sep 06 peter 66
680 11 Oct 06 jari 67 }}} // of namespace classifier, yat, and theplu
642 07 Sep 06 peter 68
642 07 Sep 06 peter 69 #endif