|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.cilib.games.agent.Agent net.sourceforge.cilib.games.agent.NeuralAgent net.sourceforge.cilib.games.agent.state.evaluation.NeuralStateEvaluator
public class NeuralStateEvaluator
Field Summary |
---|
Fields inherited from class net.sourceforge.cilib.games.agent.NeuralAgent |
---|
hiddenNodesCount, neuralNetworkTopology, outputInterpretationStrategy, stateInputStrategy |
Fields inherited from class net.sourceforge.cilib.games.agent.Agent |
---|
agentScore, agentToken, playerID |
Constructor Summary | |
---|---|
NeuralStateEvaluator()
|
|
NeuralStateEvaluator(NeuralStateEvaluator other)
Copy Constructor |
Method Summary | |
---|---|
double |
evaluateState(Game<GameState> state,
int decisionPlayerID)
Evaluate a given GameState for a given player ID. |
NeuralStateEvaluator |
getClone()
Create a cloned copy of the current object and return it. |
DomainRegistry |
getEvaluatorDomain()
If the evaluator can be optimized then the evaluator data should be in a specific domain, this function should return that domain |
void |
initializeEvaluator(Type evaluatorData)
Some state evaluators can be optimised, and therefore the evaluator should be initialized with evaluator specific data. |
void |
move(Game game)
Alter the current game by making a decision. |
void |
setHiddenNodes(int count)
|
void |
setOutputInterpretationStrategy(NeuralOutputInterpretationStrategy outputStrategy)
The NeuralOutputInterpretationStrategy should not be set since this class funtions only as a state evaluator. |
void |
setStateInputStrategy(NeuralStateInputStrategy inputStrategy)
|
Methods inherited from class net.sourceforge.cilib.games.agent.NeuralAgent |
---|
getAgentDomain, getHiddenNodesCount, getNeuralNetworkTopology, getOutputInterpretationStrategy, getScaledInput, getStateInputStrategy, initializeAgent, setNeuralNetworkTopology, setWeights |
Methods inherited from class net.sourceforge.cilib.games.agent.Agent |
---|
getAgentScore, getAgentToken, getPlayerID, setAgentScore, setAgentToken, setAgentToken, setPlayerID |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NeuralStateEvaluator()
public NeuralStateEvaluator(NeuralStateEvaluator other)
other
- Method Detail |
---|
public double evaluateState(Game<GameState> state, int decisionPlayerID)
evaluateState
in interface StateEvaluator
state
- the Game object that is at a specific state that needs to be evaluateddecisionPlayerID
- The player that has to make a decision
public DomainRegistry getEvaluatorDomain()
getEvaluatorDomain
in interface StateEvaluator
public void initializeEvaluator(Type evaluatorData)
initializeEvaluator
in interface StateEvaluator
evaluatorData
- the data that determines how the evaluator should funcitonpublic NeuralStateEvaluator getClone()
getClone
in interface Cloneable
getClone
in class NeuralAgent
Object.clone()
public void setHiddenNodes(int count)
setHiddenNodes
in class NeuralAgent
public void setStateInputStrategy(NeuralStateInputStrategy inputStrategy)
setStateInputStrategy
in class NeuralAgent
public void setOutputInterpretationStrategy(NeuralOutputInterpretationStrategy outputStrategy)
setOutputInterpretationStrategy
in class NeuralAgent
public void move(Game game)
move
in class NeuralAgent
game
- the game state
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |