00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012 #ifndef _PLSAPARAMETER_HPP
00013 #define _PLSAPARAMETER_HPP
00014
00016 #include "Param.hpp"
00018 namespace PLSAParam {
00020
00021
00022 static String databaseIndex;
00024 static int numCats;
00026 static double beta, betaMin;
00028 static double eta;
00030 static double annealcue;
00032 static int numIters;
00034 static int numRestarts;
00036 static int testPercentage;
00038 static bool doTrain;
00040
00041 static void get() {
00042 databaseIndex = ParamGetString("index","");
00043 numCats = ParamGetInt("numCats", 20);
00044 beta = ParamGetDouble("beta", 1);
00045 betaMin = ParamGetDouble("betaMin", 0.6);
00046 eta = ParamGetDouble("eta", 0.92);
00047 annealcue = ParamGetDouble("annealcue", 0);
00048 numIters = ParamGetInt("numIters", 100);
00049 numRestarts = ParamGetInt("numRestarts", 1);
00050 testPercentage = ParamGetInt("testPercentage", 10);
00051 String s = ParamGetString("doTrain", "true");
00052 doTrain = (s == "true");
00053 }
00054 };
00055 #endif