• Main Page
  • Modules
  • Classes
  • Files
  • File List

D:/Projekt/ECF_trunk/ECF/xcs/XCSParams.h

00001 #ifndef XCSParams_h
00002 #define XCSParams_h
00003 
00004 #include "../ECF_base.h"
00005 //#include "../XML/xmlParser.h"
00006 //#include "../Registry.h"
00007 
00012 class XCSParams {
00013 private:
00014     std::string name_;
00015     voidP getParameterValue(RegistryP registry, std::string name)
00016     {
00017         return registry->getEntry(name_ + "." + name);
00018     }
00019     bool registerParameter(RegistryP registry, std::string name, voidP value, ECF::type T)
00020     {
00021         return registry->registerEntry(name_ + "." + name, value, T);
00022     }
00023 public:
00024     uint mna_; //minimum number of different actions in match set [M]
00025     
00026     double initF_; //initial fitness value
00027     double beta_; //learning rate
00028     double gama_; //discount factor used in multi-step problems
00029     double p_explore_; //probability of choosing random action
00030 
00031     uint thresholdGA_; //after how many generations should GA be runned
00032     double thresholdDel_;
00033     double thresholdSub_;
00034 
00035     double eps0_; //threshold prediction error
00036     double alpha_; //classifier accuracy diferention parameter
00037     double accExp_; //accuracy exponent, used when calculating prediction error
00038     double pdc_; //probability of # appearence in classifier rule
00039 
00040     double pCrossover_; //probability of applying crossover in the GA
00041     double pMutation_; //probability of applying mutation in the GA
00042 
00043     double delta_;
00044     uint popSize_;
00045 
00046     XCSParams (std::string name) {name_ = name;}
00047 
00048     void registerParams(RegistryP registry);
00049     void readParams(RegistryP registry);
00050     XMLNode getXMLNode();
00051 
00052 };
00053 typedef boost::shared_ptr<XCSParams> XCSParamsP;
00054 
00055 #endif

Generated on Tue Nov 4 2014 13:04:31 for ECF by  doxygen 1.7.1