Last change
on this file since 642 was
642,
checked in by Peter, 16 years ago
|
adding class for selecting features by random
|
File size:
932 bytes
|
Line | |
---|
1 | #ifndef _theplu_classifier_featureselector_random_ |
---|
2 | #define _theplu_classifier_featureselector_random_ |
---|
3 | |
---|
4 | // $Id$ |
---|
5 | |
---|
6 | #include "FeatureSelector.h" |
---|
7 | |
---|
8 | namespace theplu { |
---|
9 | namespace classifier { |
---|
10 | |
---|
11 | /// |
---|
12 | /// @brief Class for selection features by random. |
---|
13 | /// |
---|
14 | class FeatureSelectorRandom : public FeatureSelector |
---|
15 | { |
---|
16 | public: |
---|
17 | /// |
---|
18 | /// @brief Default Constructor |
---|
19 | /// |
---|
20 | /// @param N number of features to select |
---|
21 | /// |
---|
22 | FeatureSelectorRandom(size_t N); |
---|
23 | |
---|
24 | /// |
---|
25 | /// |
---|
26 | /// |
---|
27 | void update(const MatrixLookup& data, const Target& target); |
---|
28 | |
---|
29 | /// |
---|
30 | /// |
---|
31 | /// |
---|
32 | void update(const MatrixLookupWeighted& data, const Target& target); |
---|
33 | |
---|
34 | private: |
---|
35 | /// Copy Constructor not implemented |
---|
36 | FeatureSelectorRandom(const FeatureSelectorRandom&); |
---|
37 | |
---|
38 | /// Assignment operator not implemented |
---|
39 | FeatureSelectorRandom& operator=(const FeatureSelectorRandom&); |
---|
40 | |
---|
41 | void update(size_t); |
---|
42 | |
---|
43 | }; |
---|
44 | |
---|
45 | } // end of namespace classifier |
---|
46 | } // end of namespace theplu |
---|
47 | |
---|
48 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.