public class Benchmarks extends GPProblem implements SimpleProblemForm
| Modifier and Type | Field and Description |
|---|---|
(package private) static double |
BIG_NUMBER |
double[] |
currentValue |
static String[] |
fs |
static String[][] |
fs_vars |
static int |
KEIJZER1 |
static int |
KEIJZER10 |
static int |
KEIJZER11 |
static int |
KEIJZER12 |
static int |
KEIJZER13 |
static int |
KEIJZER14 |
static int |
KEIJZER15 |
static int |
KEIJZER2 |
static int |
KEIJZER3 |
static int |
KEIJZER4 |
static int |
KEIJZER5 |
static int |
KEIJZER6 |
static int |
KEIJZER7 |
static int |
KEIJZER8 |
static int |
KEIJZER9 |
static int |
KORNS1 |
static int |
KORNS10 |
static int |
KORNS11 |
static int |
KORNS12 |
static int |
KORNS13 |
static int |
KORNS14 |
static int |
KORNS15 |
static int |
KORNS2 |
static int |
KORNS3 |
static int |
KORNS4 |
static int |
KORNS5 |
static int |
KORNS6 |
static int |
KORNS7 |
static int |
KORNS8 |
static int |
KORNS9 |
static int |
KOZA1 |
static int |
KOZA2 |
static int |
KOZA3 |
static String[] |
names |
static int |
NGUYEN1 |
static int |
NGUYEN10 |
static int |
NGUYEN2 |
static int |
NGUYEN3 |
static int |
NGUYEN4 |
static int |
NGUYEN5 |
static int |
NGUYEN6 |
static int |
NGUYEN7 |
static int |
NGUYEN8 |
static int |
NGUYEN9 |
static String |
P_PROBLEM_TYPE |
static String |
P_TESTING_FILE |
static String |
P_TRAINING_FILE |
static int |
PAGIE1 |
static int |
PAGIE2 |
(package private) static double |
PROBABLY_ZERO |
private static long |
serialVersionUID |
double[][] |
testingInputs |
double[] |
testingOutputs |
double[][] |
trainingInputs |
double[] |
trainingOutputs |
static int |
VLADISLAVLEVA1 |
static int |
VLADISLAVLEVA2 |
static int |
VLADISLAVLEVA3 |
static int |
VLADISLAVLEVA4 |
static int |
VLADISLAVLEVA5 |
static int |
VLADISLAVLEVA6 |
static int |
VLADISLAVLEVA7 |
static int |
VLADISLAVLEVA8 |
| Constructor and Description |
|---|
Benchmarks() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static double |
asinh(double x)
Hyperbolic Arc Sin -- not standard in Java Math library
|
(package private) void |
buildIntervalPoints(EvolutionState state,
ArrayList list,
double[] min,
double[] max,
double[] interval,
double[] current,
int variable,
int threadnum) |
void |
describe(EvolutionState state,
Individual ind,
int subpopulation,
int threadnum,
int log)
Part of SimpleProblemForm.
|
double |
error(double result,
double expectedResult)
Returns the error between the result and the expected result of a single
data point.
|
void |
evaluate(EvolutionState state,
Individual ind,
int subpopulation,
int threadnum)
Evaluates the individual in ind, if necessary (perhaps
not evaluating them if their evaluated flags are true),
and sets their fitness appropriately.
|
double |
func(EvolutionState state,
double[] xs,
int benchmark)
Return the function applied to the given data by benchmark problem.
|
double[][] |
generateIntervalSpacedSamples(EvolutionState state,
double[] min,
double[] max,
double[] interval,
int threadnum)
Produce sample points evenly spaced out between min and max in each dimension, with the given spacing interval per-dimension.
|
double[][] |
generateIntervalSpacedSamples(EvolutionState state,
double min,
double max,
double interval,
int threadnum)
Produce sample points evenly spaced out between min and max in one dimension, with the given spacing interval.
|
double[][] |
generateRandomSamples(EvolutionState state,
double[] min,
double[] max,
int numPoints,
int threadnum)
Produce random sample points between min and max, inclusive, in each dimension.
|
double[][] |
generateRandomSamples(EvolutionState state,
double min,
double max,
int numPoints,
int threadnum)
Produce random sample points between min and max, inclusive, in one dimension.
|
void |
setup(EvolutionState state,
Parameter base)
Sets up the object by reading it from the parameters stored
in state, built off of the parameter base base.
|
double[][] |
testPoints(EvolutionState state,
int benchmark,
int threadnum,
double[][] trainpoints)
Produce test sample points for a given benchmark problem, to test generalization.
|
double[][] |
trainPoints(EvolutionState state,
int benchmark,
int threadnum)
Produce sample points for a given benchmark problem.
|
clone, defaultBasecanEvaluate, closeContacts, describe, finishEvaluating, initializeContacts, prepareToEvaluate, reinitializeContactsprivate static final long serialVersionUID
public static final int KOZA1
public static final int KOZA2
public static final int KOZA3
public static final int NGUYEN1
public static final int NGUYEN2
public static final int NGUYEN3
public static final int NGUYEN4
public static final int NGUYEN5
public static final int NGUYEN6
public static final int NGUYEN7
public static final int NGUYEN8
public static final int NGUYEN9
public static final int NGUYEN10
public static final int PAGIE1
public static final int PAGIE2
public static final int KORNS1
public static final int KORNS2
public static final int KORNS3
public static final int KORNS4
public static final int KORNS5
public static final int KORNS6
public static final int KORNS7
public static final int KORNS8
public static final int KORNS9
public static final int KORNS10
public static final int KORNS11
public static final int KORNS12
public static final int KORNS13
public static final int KORNS14
public static final int KORNS15
public static final int KEIJZER1
public static final int KEIJZER2
public static final int KEIJZER3
public static final int KEIJZER4
public static final int KEIJZER5
public static final int KEIJZER6
public static final int KEIJZER7
public static final int KEIJZER8
public static final int KEIJZER9
public static final int KEIJZER10
public static final int KEIJZER11
public static final int KEIJZER12
public static final int KEIJZER13
public static final int KEIJZER14
public static final int KEIJZER15
public static final int VLADISLAVLEVA1
public static final int VLADISLAVLEVA2
public static final int VLADISLAVLEVA3
public static final int VLADISLAVLEVA4
public static final int VLADISLAVLEVA5
public static final int VLADISLAVLEVA6
public static final int VLADISLAVLEVA7
public static final int VLADISLAVLEVA8
public static final String[] names
public static final String[] fs
public static final String[][] fs_vars
static final double PROBABLY_ZERO
static final double BIG_NUMBER
public static final String P_TESTING_FILE
public static final String P_TRAINING_FILE
public static final String P_PROBLEM_TYPE
public double[] currentValue
public double[][] trainingInputs
public double[] trainingOutputs
public double[][] testingInputs
public double[] testingOutputs
static double asinh(double x)
public double[][] generateRandomSamples(EvolutionState state, double[] min, double[] max, int numPoints, int threadnum)
public double[][] generateRandomSamples(EvolutionState state, double min, double max, int numPoints, int threadnum)
void buildIntervalPoints(EvolutionState state, ArrayList list, double[] min, double[] max, double[] interval, double[] current, int variable, int threadnum)
public double[][] generateIntervalSpacedSamples(EvolutionState state, double[] min, double[] max, double[] interval, int threadnum)
public double[][] generateIntervalSpacedSamples(EvolutionState state, double min, double max, double interval, int threadnum)
public double[][] trainPoints(EvolutionState state, int benchmark, int threadnum)
public double[][] testPoints(EvolutionState state, int benchmark, int threadnum, double[][] trainpoints)
public double func(EvolutionState state, double[] xs, int benchmark) throws IllegalArgumentException
IllegalArgumentExceptionpublic double error(double result,
double expectedResult)
public void setup(EvolutionState state, Parameter base)
PrototypeFor prototypes, setup(...) is typically called once for the prototype instance; cloned instances do not receive the setup(...) call. setup(...) may be called more than once; the only guarantee is that it will get called at least once on an instance or some "parent" object from which it was ultimately cloned.
public void evaluate(EvolutionState state, Individual ind, int subpopulation, int threadnum)
SimpleProblemFormevaluate in interface SimpleProblemFormpublic void describe(EvolutionState state, Individual ind, int subpopulation, int threadnum, int log)
Problemdescribe in interface SimpleProblemFormdescribe in class ProblemCopyright © 2014 Evolutionary Computation Laboratory at George Mason University. All rights reserved.