680 |
11 Oct 06 |
jari |
1 |
#ifndef _theplu_yat_classifier_featureselectorir_ |
680 |
11 Oct 06 |
jari |
2 |
#define _theplu_yat_classifier_featureselectorir_ |
604 |
29 Aug 06 |
peter |
3 |
|
675 |
10 Oct 06 |
jari |
// $Id$ |
675 |
10 Oct 06 |
jari |
5 |
|
675 |
10 Oct 06 |
jari |
6 |
/* |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2006 Jari Häkkinen, Peter Johansson |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2007 Peter Johansson |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
675 |
10 Oct 06 |
jari |
10 |
|
1437 |
25 Aug 08 |
peter |
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 |
The yat library is free software; you can redistribute it and/or |
675 |
10 Oct 06 |
jari |
modify it under the terms of the GNU General Public License as |
1486 |
09 Sep 08 |
jari |
published by the Free Software Foundation; either version 3 of the |
675 |
10 Oct 06 |
jari |
License, or (at your option) any later version. |
675 |
10 Oct 06 |
jari |
17 |
|
675 |
10 Oct 06 |
jari |
The yat library is distributed in the hope that it will be useful, |
675 |
10 Oct 06 |
jari |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
675 |
10 Oct 06 |
jari |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
675 |
10 Oct 06 |
jari |
General Public License for more details. |
675 |
10 Oct 06 |
jari |
22 |
|
675 |
10 Oct 06 |
jari |
You should have received a copy of the GNU General Public License |
1487 |
10 Sep 08 |
jari |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
675 |
10 Oct 06 |
jari |
25 |
*/ |
675 |
10 Oct 06 |
jari |
26 |
|
604 |
29 Aug 06 |
peter |
27 |
#include "FeatureSelector.h" |
604 |
29 Aug 06 |
peter |
28 |
|
604 |
29 Aug 06 |
peter |
29 |
namespace theplu { |
680 |
11 Oct 06 |
jari |
30 |
namespace yat { |
747 |
11 Feb 07 |
peter |
31 |
namespace statistics { |
747 |
11 Feb 07 |
peter |
32 |
class Score; |
747 |
11 Feb 07 |
peter |
33 |
} |
604 |
29 Aug 06 |
peter |
34 |
namespace classifier { |
604 |
29 Aug 06 |
peter |
35 |
|
604 |
29 Aug 06 |
peter |
36 |
/// |
604 |
29 Aug 06 |
peter |
/// @brief FeatureSelector using an InputRanker |
604 |
29 Aug 06 |
peter |
38 |
/// |
604 |
29 Aug 06 |
peter |
39 |
class FeatureSelectorIR : public FeatureSelector |
604 |
29 Aug 06 |
peter |
40 |
{ |
604 |
29 Aug 06 |
peter |
41 |
public: |
4200 |
19 Aug 22 |
peter |
42 |
/// |
4200 |
19 Aug 22 |
peter |
/// @brief Default Constructor |
4200 |
19 Aug 22 |
peter |
44 |
/// |
604 |
29 Aug 06 |
peter |
45 |
FeatureSelectorIR(statistics::Score& score, size_t N, size_t first=0); |
604 |
29 Aug 06 |
peter |
46 |
|
604 |
29 Aug 06 |
peter |
47 |
/// |
604 |
29 Aug 06 |
peter |
48 |
/// |
604 |
29 Aug 06 |
peter |
49 |
/// |
624 |
05 Sep 06 |
peter |
50 |
void update(const MatrixLookup& data, const Target& target); |
604 |
29 Aug 06 |
peter |
51 |
|
624 |
05 Sep 06 |
peter |
52 |
/// |
624 |
05 Sep 06 |
peter |
53 |
/// |
624 |
05 Sep 06 |
peter |
54 |
/// |
624 |
05 Sep 06 |
peter |
55 |
void update(const MatrixLookupWeighted& data, const Target& target); |
624 |
05 Sep 06 |
peter |
56 |
|
604 |
29 Aug 06 |
peter |
57 |
private: |
604 |
29 Aug 06 |
peter |
/// Copy Constructor |
604 |
29 Aug 06 |
peter |
59 |
FeatureSelectorIR(const FeatureSelectorIR&); |
604 |
29 Aug 06 |
peter |
60 |
|
604 |
29 Aug 06 |
peter |
/// Assignment operator |
604 |
29 Aug 06 |
peter |
62 |
FeatureSelectorIR& operator=(const FeatureSelectorIR&); |
604 |
29 Aug 06 |
peter |
63 |
|
604 |
29 Aug 06 |
peter |
64 |
statistics::Score& score_; |
604 |
29 Aug 06 |
peter |
65 |
|
604 |
29 Aug 06 |
peter |
66 |
}; |
604 |
29 Aug 06 |
peter |
67 |
|
680 |
11 Oct 06 |
jari |
68 |
}}} // of namespace classifier, yat, and theplu |
604 |
29 Aug 06 |
peter |
69 |
|
604 |
29 Aug 06 |
peter |
70 |
#endif |