public class UCBOptimization extends java.lang.Object implements OptimizationObjective
| Modifier and Type | Field and Description |
|---|---|
static int |
RANDOM_OBJ
this is a unified random object to be used
|
static double |
SCORE_WIN
Weights for Score wrt to Wins in the optimization problem
|
static double |
SIGMOID_SHIFT
sigmoid shift for negative scores
|
static double |
SIGMOID_WIDTH
sigmoid width for score
|
| Constructor and Description |
|---|
UCBOptimization(java.lang.String[] gamePaths,
java.lang.String[] levelPaths,
int repetition,
int evaluation,
UCBEquation ucb)
Constructor for the current ucb optimization objective
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
evaluate(double[] parameters)
evaluate the current parameters against the target objectives
|
int |
getNumberOfObjectives()
get the number of parameters used in this equation
|
int |
getNumberOfParameters()
small value to avoid division by zero
|
public static double SCORE_WIN
public static double SIGMOID_WIDTH
public static double SIGMOID_SHIFT
public static int RANDOM_OBJ
public UCBOptimization(java.lang.String[] gamePaths,
java.lang.String[] levelPaths,
int repetition,
int evaluation,
UCBEquation ucb)
gamePaths - all game paths require to test againstlevelPaths - all level paths associated with the gamesrepetition - number of repetition to play each gameevaluation - the maximum number of calls allowed for the evaluation
functionucb - the current ucb equation to optimizepublic int getNumberOfParameters()
getNumberOfParameters in interface OptimizationObjectivepublic int getNumberOfObjectives()
getNumberOfObjectives in interface OptimizationObjectivepublic double[] evaluate(double[] parameters)
evaluate in interface OptimizationObjectiveparameters - the current set of parameters to test