00001 #ifndef __GNGSETTINGS_H 00002 #define __GNGSETTINGS_H 00003 00004 #include <iostream> 00005 #include <fstream> 00006 #include <string> 00007 00011 class Settings 00012 { 00013 public: 00017 Settings(std::string filename); 00018 00019 protected: 00020 void SkipComment(std::ifstream & s); 00021 00022 public: 00023 std::string m_mode; // (gng, gngu, sgng ) 00024 unsigned int m_dim; 00025 bool m_initFromDistribution; // initialize the two first node-positions from input distr. 00026 unsigned int m_maxIterations; 00027 00028 unsigned int m_representationUpdate; 00029 00030 unsigned int m_maxNodes; 00031 unsigned int m_insertEvery; 00032 double m_newNodePos; 00033 double m_errorDecayInsert; 00034 00035 double m_ageMax; 00036 double m_moveWinner; 00037 double m_moveNeighbor; 00038 double m_errorDecay; 00039 double m_utilityDecay; 00040 double m_utilityBound; 00041 00042 unsigned int m_GNGMSEBackLog; 00043 00044 int m_distributionType; // choose from the different types of distributions 00045 unsigned int m_iterationDelay; // delay in milliseconds between each iteraton. 00046 double m_RBFbackLog; //MISCLASSIFICATION_BACKLOG 00047 unsigned int m_maxMisclassification; //NUM_MISCLASSIFICATIONS 00048 double m_classificaitonDecisionLimit; 00049 double m_classificaitonDecisionDelta; 00050 double m_maxSquaredError; //max allowed squared error for function approximation 00051 00052 double m_eta; // step-size used in weight training (sgng) 00053 }; 00054 00055 00056 #endif