ECF
1.5
D:
Projekt
ECF_trunk
ECF
xcs
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
12
class
XCSParams
{
13
private
:
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
}
23
public
:
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
};
53
typedef
boost::shared_ptr<XCSParams> XCSParamsP;
54
55
#endif
XCSParams
Parameters for the XCS algorithm.
Definition:
XCSParams.h:12
ECF::type
type
Data types used for configuration file parameters.
Definition:
Registry.h:16
Generated on Wed Aug 3 2022 17:50:41 for ECF by
1.9.4