|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ValueFunction
A ValueFunction maps states from a World, to values, and may be implemented
with a neural network or a HashMap.
For an example hashmap implementation see ValueFunctionHashMap.
When the value function
is optimal then the optimal policy can be extracted
from it in realtime, see PolicyExtractor.
| Method Summary | |
|---|---|
java.lang.String |
getName()
It is important for value functions to have names for the patchwork approach, so that states can identify to which value function patch they belong by the PolicyExtractor. |
double |
getValue(State state)
Retrieve the value associated with a state (which may be different for non-stored states depending on the actual class implementing this value function). |
void |
setName(java.lang.String name)
|
void |
setValue(State state,
double newValue)
|
void |
setValueOfTerminalStates(double newValueOfTerminalStates)
Many problems define a value of 0 for their terminal states, where the agent can remain. |
void |
setWorld(World w)
|
| Method Detail |
|---|
double getValue(State state)
void setValue(State state,
double newValue)
void setValueOfTerminalStates(double newValueOfTerminalStates)
java.lang.String getName()
PolicyExtractor.
void setName(java.lang.String name)
void setWorld(World w)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||