ECF 1.5
XCSParams.h
1#ifndef XCSParams_h
2#define XCSParams_h
3
4#include "../ECF_base.h"
5//#include "../XML/xmlParser.h"
6//#include "../Registry.h"
7
12class XCSParams {
13private:
14 std::string name_;
15 voidP getParameterValue(RegistryP registry, std::string name)
16 {
17 return registry->getEntry(name_ + "." + name);
18 }
19 bool registerParameter(RegistryP registry, std::string name, voidP value, ECF::type T)
20 {
21 return registry->registerEntry(name_ + "." + name, value, T);
22 }
23public:
24 uint mna_; //minimum number of different actions in match set [M]
25
26 double initF_; //initial fitness value
27 double beta_; //learning rate
28 double gama_; //discount factor used in multi-step problems
29 double p_explore_; //probability of choosing random action
30
31 uint thresholdGA_; //after how many generations should GA be runned
32 double thresholdDel_;
33 double thresholdSub_;
34
35 double eps0_; //threshold prediction error
36 double alpha_; //classifier accuracy diferention parameter
37 double accExp_; //accuracy exponent, used when calculating prediction error
38 double pdc_; //probability of # appearence in classifier rule
39
40 double pCrossover_; //probability of applying crossover in the GA
41 double pMutation_; //probability of applying mutation in the GA
42
43 double delta_;
44 uint popSize_;
45
46 XCSParams (std::string name) {name_ = name;}
47
48 void registerParams(RegistryP registry);
49 void readParams(RegistryP registry);
50 XMLNode getXMLNode();
51
52};
53typedef boost::shared_ptr<XCSParams> XCSParamsP;
54
55#endif
Parameters for the XCS algorithm.
Definition: XCSParams.h:12
type
Data types used for configuration file parameters.
Definition: Registry.h:16