net.sourceforge.cilib.games.agent.neural
Class NeuralStateInputStrategy
java.lang.Object
net.sourceforge.cilib.games.agent.neural.NeuralStateInputStrategy
- Direct Known Subclasses:
- PredatorPreyNeuralInputStrategy, TetrisFeaturesInputStrategy, TTTStateInputStrategy
public abstract class NeuralStateInputStrategy
- extends Object
- Author:
- leo
This class is used by the NeuralAgent to get an input vector based on a given GameState
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NeuralStateInputStrategy
public NeuralStateInputStrategy()
amountInputs
public abstract int amountInputs()
- get the amount of inputs that the Neural Network should have based on this input strategy
- Returns:
- the input count
getNeuralInputArray
public abstract Vector getNeuralInputArray(NeuralAgent currentPlayer,
Game<GameState> state)
- Get an input vector for the given game state
- Parameters:
currentPlayer
- the agent represented by the Neural Networkstate
- the current game state
- Returns:
- the input vector
Copyright © 2009 CIRG. All Rights Reserved.