Package | Description |
---|---|
net.viktorc.detroid.framework.tuning |
Modifier and Type | Method and Description |
---|---|
static ParameterType |
ParameterType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParameterType[] |
ParameterType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
double[] |
EngineParameters.maxValues(Set<ParameterType> types)
Returns an array of doubles holding the maximum allowed values for all the fields declared as parameters of the specified type by the
Parameter annotation. |
boolean |
EngineParameters.set(double[] values,
Set<ParameterType> types)
Sets the values of the parameter fields of the specified type.
|
boolean |
EngineParameters.set(String binaryString,
Set<ParameterType> types)
Sets the values of the parameter fields of the specified type based on the binaryString in which each character represents a bit in the
string of the individual gray code strings of the values of the parameter fields of the specified type in the order of declaration.
|
String |
EngineParameters.toGrayCodeString(Set<ParameterType> types)
Returns a binary string of all the bits of the fields annotated as a
Parameter of the
specified type concatenated field by field. |
double[] |
EngineParameters.values(Set<ParameterType> types)
Returns an array of doubles holding the values of all the fields declared as parameters of the specified type by the
Parameter annotation. |
double[] |
EngineParameters.valuesFromMap(Map<String,Double> paramValues,
Set<ParameterType> types)
Builds an array of values based on the entries of the provided map.
|
Constructor and Description |
---|
SelfPlayOptimizer(List<SelfPlayEngines<TunableEngine>> engines,
Set<ParameterType> parameterTypes,
int games,
long timePerGame,
long timeIncPerMove,
double validationFactor,
double[] initialProbabilityVector,
int populationSize,
Double learningRate,
Double negativeLearningRate,
Double mutationProbability,
Double mutationShift,
Integer generations,
Logger logger)
Constructs a new instance according to the specified parameters.
|
Copyright © 2020. All rights reserved.