Class XCSConstantsManager

java.lang.Object
  |
  +--XCSConstantsManager
All Implemented Interfaces:
java.io.Serializable

public class XCSConstantsManager
extends java.lang.Object
implements java.io.Serializable

This class provides all relevant learning parameters for the XCS as well as other experimental settings and flags. Most parameter-names are chosen similar to the 'An Algorithmic Description of XCS' ( Butz&Wilson, IlliGAL report 2000017).

Since:
JDK 1.3
See Also:
Serialized Form

Field Summary
private static long _A
          Constant for the random number generator (default = 16807).
private static long _M
          Constant for the random number generator (modulus of PMMLCG = 2^31 -1).
private static long _Q
          Constant for the random number generator (=_M/_A).
private static long _R
          Constant for the random number generator (=_M mod _A).
static double alpha
          The fall of rate in the fitness evaluation.
static double beta
          The learning rate for updating fitness, prediction, prediction error, and action set size estimate in XCS's classifiers.
static double delta
          The fraction of the mean fitness of the population below which the fitness of a classifier may be considered in its vote for deletion.
static boolean doActionSetSubsumption
          Specifies if action set subsumption should be executed.
static boolean doGASubsumption
          Specifies if GA subsumption should be executed.
static char dontCare
          The don't care symbol (normally '#')
static double epsilon_0
          The error threshold under which the accuracy of a classifier is set to one.
static double fitnessIni
          The initial prediction value when generating a new classifier (e.g in covering).
static double fitnessReduction
          The reduction of the fitness when generating an offspring classifier.
static double gamma
          The discount rate in multi-step problems.
static int maxPopSize
          Specifies the maximal number of micro-classifiers in the population.
static double nu
          Specifies the exponent in the power function for the fitness evaluation.
static double P_dontcare
          The probability of using a don't care symbol in an allele when covering.
static double pM
          The probability of mutating one allele and the action in an offspring classifier.
static double predictionErrorIni
          The initial prediction error value when generating a new classifier (e.g in covering).
static double predictionErrorReduction
          The reduction of the prediction error when generating an offspring classifier.
static double predictionIni
          The initial prediction value when generating a new classifier (e.g in covering).
static double pX
          The probability of applying crossover in an offspring classifier.
private static long seed
          The initialization of the pseudo random generator.
static int theta_del
          Specified the threshold over which the fitness of a classifier may be considered in its deletion probability.
static double theta_GA
          The threshold for the GA application in an action set.
static int theta_sub
          The experience of a classifier required to be a subsumer.
 
Constructor Summary
XCSConstantsManager()
          The default constructor.
 
Method Summary
static float drand()
          Returns a random number in between zero and one.
static void setSeed(long s)
          Sets a random seed in order to randomize the pseudo random generator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

maxPopSize

public static int maxPopSize
Specifies the maximal number of micro-classifiers in the population.


alpha

public static double alpha
The fall of rate in the fitness evaluation.


beta

public static double beta
The learning rate for updating fitness, prediction, prediction error, and action set size estimate in XCS's classifiers.


gamma

public static double gamma
The discount rate in multi-step problems.


delta

public static double delta
The fraction of the mean fitness of the population below which the fitness of a classifier may be considered in its vote for deletion.


nu

public static double nu
Specifies the exponent in the power function for the fitness evaluation.


theta_GA

public static double theta_GA
The threshold for the GA application in an action set.


epsilon_0

public static double epsilon_0
The error threshold under which the accuracy of a classifier is set to one.


theta_del

public static int theta_del
Specified the threshold over which the fitness of a classifier may be considered in its deletion probability.


pX

public static double pX
The probability of applying crossover in an offspring classifier.


pM

public static double pM
The probability of mutating one allele and the action in an offspring classifier.


P_dontcare

public static double P_dontcare
The probability of using a don't care symbol in an allele when covering.


predictionErrorReduction

public static double predictionErrorReduction
The reduction of the prediction error when generating an offspring classifier.


fitnessReduction

public static double fitnessReduction
The reduction of the fitness when generating an offspring classifier.


theta_sub

public static int theta_sub
The experience of a classifier required to be a subsumer.


doGASubsumption

public static boolean doGASubsumption
Specifies if GA subsumption should be executed.


doActionSetSubsumption

public static boolean doActionSetSubsumption
Specifies if action set subsumption should be executed.


predictionIni

public static double predictionIni
The initial prediction value when generating a new classifier (e.g in covering).


predictionErrorIni

public static double predictionErrorIni
The initial prediction error value when generating a new classifier (e.g in covering).


fitnessIni

public static double fitnessIni
The initial prediction value when generating a new classifier (e.g in covering).


dontCare

public static char dontCare
The don't care symbol (normally '#')


seed

private static long seed
The initialization of the pseudo random generator. Must be at least one and smaller than _M.


_M

private static final long _M
Constant for the random number generator (modulus of PMMLCG = 2^31 -1).

See Also:
Constant Field Values

_A

private static final long _A
Constant for the random number generator (default = 16807).

See Also:
Constant Field Values

_Q

private static final long _Q
Constant for the random number generator (=_M/_A).

See Also:
Constant Field Values

_R

private static final long _R
Constant for the random number generator (=_M mod _A).

See Also:
Constant Field Values
Constructor Detail

XCSConstantsManager

public XCSConstantsManager()
The default constructor.

Method Detail

setSeed

public static void setSeed(long s)
Sets a random seed in order to randomize the pseudo random generator.


drand

public static float drand()
Returns a random number in between zero and one.