public class Config
extends java.lang.Object
This class contains all the configuration parameters for the XCS.
Modifier and Type | Field and Description |
---|---|
static double |
acc_0
Parameter of the accuracy function (Is the accuracy threshold beyond which
the accuracy of the classifier is set to 1.
|
static double |
alpha
Parameter of accuracy function (the fall of rate in the fitness evaluation).
|
static double[][] |
attBounds |
static java.util.Vector |
attNames |
static double |
beta
Learning rate for prediction, prediction error, fitness, and action set
estimation updates
|
static char[] |
charVector
It contains all the characters that can take a problem with character representation.
|
static java.util.Vector |
classConv |
static java.lang.String |
className |
static int |
clLength
Represents the lenght of the classifier.
|
static int |
debugLevel
It indicates the level of debug (the quantity of message that will appear in the estandard output
|
static boolean |
defaultRule |
static double |
delta
Value of the fraction used in the second deletion method.
|
static boolean |
doGASubsumption
It indicates if the GA subsumption is required.
|
static char |
dontCareSymbol
Represents the don't care symbol for problem that use a
character representation or a mixed representation.
|
static boolean |
doStatistics
It indicates if the user wants to get some statistics in a file.
|
static boolean |
doTest
This parameter indicates if test has to be made between
the train execution.
|
static boolean |
doTrain
It indicates if a train has to be made
|
static java.util.Vector[] |
enumConv |
static int |
exploresBetweenExploits
Indicates the number of explore experiments that have to be
made before doing an exploit experiment
|
static java.lang.String |
fDrawFileName |
static java.lang.String |
fIncFileName |
static double |
fitReduction
The factor by which the fitness is reduced when a new classifier is
generated in the AG.
|
static java.lang.String |
fOTestFileName |
static java.lang.String |
fOTrainFileName |
static java.lang.String |
fPopFileName |
static java.lang.String |
fPopNormFileName |
static java.lang.String |
fTestFileName |
static java.lang.String |
fTimeFileName |
static java.lang.String |
fTrainFileName |
static java.lang.String |
inputsLine |
static double |
m_0
It indicates the range of the uniform distribution to use in the mutation of a real allele.
|
static int |
majorityClass |
static double[] |
maxBDAttributeValue |
static double[] |
minBDAttributeValue
The following parameters are to save the BD examples maximum and minimum values.
|
static double |
nu
Exponent in the power function for the fitness evaluation
|
static int |
numberOfActions
Represents the number of actions that a classifier can take.
|
static int |
numberOfCharacters
Represents the number of different characters that can take a character representation.
|
static int |
numberOfExplores
Represents the number of experiments that have to be made.
|
static int |
numberOfTestExamples
Indicates the number of iterations that has to be made in a
test execution.
|
static java.lang.String |
outputsLine |
static double |
pDontCare
Is the probability of using # in one attribute when covering.
|
static double |
pM
Probability of mutate an allele in the offspring.
|
static int |
popSize
Represents the maximum number of microclassifiers in the population.
|
static java.lang.String |
populationFile
If not null, it represents the name of the file where the
population has been writen
|
static double |
pX
Probability of applying crossover in the GA.
|
static double |
r_0
Represents the interval of random numbers that will be
generated to be added in the real mutation.
|
static java.lang.String |
relationName
Variables to store extra information about attributes
|
static double |
seed
It's the seed of the run
|
static boolean |
sequentialTest
This parameter indicates if the test execution must be a
sequential execution (if the enviornment is a file environment),
or it mustn't.
|
static java.lang.String |
statisticFileOutName1
It is the name of the file where the statistics will be written in ("outFile1.txt").
|
static java.lang.String |
statisticFileOutName2
It is the name of the file where the statistics will be written in ("outFile2.txt").
|
static java.lang.String |
statisticFileOutName3
It is the name of the file where the statistics will be written in ("outFile3.txt").
|
static int |
statisticWindowSize
It the size of the window for the incremental statistics.
|
static boolean |
ternaryRep
Represents the type of the representation.
|
static java.lang.String |
testFile
It the BD of test examples
|
static int |
testWindow
Indicates the number of train executions that has to be made
to do a test execution.
|
static double |
theta_del
Is the deletion threshold.
|
static double |
theta_GA
It represents the time from last GA aplication for aplicate again the GA
in the action set.
|
static double |
theta_sub
Is the subsumption threshold.
|
static double |
tournamentSize
It represents the percentage of population that has to be selected
to make tournament.
|
static java.lang.String |
trainFile
It the BD of train examples
|
static java.lang.String[] |
typeOfAttributes
Represents the type of each attribute of a classifier.
|
static java.lang.String |
typeOfCrossover
Represents the type of crossover.
|
static java.lang.String |
typeOfMutation
Represents the type of mutation.
|
static java.lang.String |
typeOfProblem
It represents the type of problem to be executed.
|
static java.lang.String |
typeOfSelection
Represents the type of selection.
|
static java.lang.String |
UCSRun
It represents the number of explores iterations that have to be
made to do a exploit
|
static double |
unknownValue
It represents the unkown value in a training instance
|
Constructor and Description |
---|
Config()
It's de defalut constructor of the class.
|
Modifier and Type | Method and Description |
---|---|
static void |
doParse(java.lang.String configFile) |
static void |
printContents()
It does print all the parameters value to check their correct initialization
|
static double |
rand()
Returns a number between [0, 1), so, 0 inclusive and 1 exclusive.
|
static void |
setSeed(long seed) |
static void |
write(java.lang.String s) |
public static final double unknownValue
public static java.lang.String typeOfProblem
public static boolean doTrain
public static int numberOfExplores
public static int exploresBetweenExploits
public static double seed
public static java.lang.String UCSRun
public static java.lang.String trainFile
public static java.lang.String testFile
public static java.lang.String populationFile
public static int popSize
public static double alpha
public static double beta
public static double delta
public static double nu
public static double theta_del
public static double theta_sub
public static double acc_0
public static double fitReduction
public static double pX
public static double pM
public static double theta_GA
public static boolean doGASubsumption
public static double tournamentSize
public static java.lang.String typeOfMutation
public static java.lang.String typeOfSelection
public static java.lang.String typeOfCrossover
public static double m_0
public static double pDontCare
public static char dontCareSymbol
public static boolean ternaryRep
public static java.lang.String[] typeOfAttributes
public static int clLength
public static int numberOfCharacters
public static char[] charVector
public static int numberOfActions
public static double r_0
public static boolean doStatistics
public static int statisticWindowSize
public static java.lang.String statisticFileOutName1
public static java.lang.String statisticFileOutName2
public static java.lang.String statisticFileOutName3
public static boolean doTest
public static int testWindow
public static boolean sequentialTest
public static int numberOfTestExamples
public static int debugLevel
public static double[][] attBounds
public static java.util.Vector[] enumConv
public static java.util.Vector classConv
public static java.lang.String relationName
public static java.util.Vector attNames
public static java.lang.String className
public static java.lang.String inputsLine
public static java.lang.String outputsLine
public static int majorityClass
public static boolean defaultRule
public static double[] minBDAttributeValue
public static double[] maxBDAttributeValue
public static java.lang.String fOTrainFileName
public static java.lang.String fOTestFileName
public static java.lang.String fPopFileName
public static java.lang.String fPopNormFileName
public static java.lang.String fTrainFileName
public static java.lang.String fTestFileName
public static java.lang.String fIncFileName
public static java.lang.String fDrawFileName
public static java.lang.String fTimeFileName
public static void setSeed(long seed)
public static double rand()
public static void printContents()
public static void write(java.lang.String s)
public static void doParse(java.lang.String configFile)