|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.pakl.rl.Agent
net.pakl.rl.AgentParallelized
public class AgentParallelized
This class represents a multi-threaded agent (therefore faster if you have multiple CPUs) appropriate for reinforcement learning with full Value Iteration, since during value iteration each state can be updated independently of others (as long as testTrainSameVf is false).
| Field Summary | |
|---|---|
protected int |
threadsAtATime
|
| Fields inherited from class net.pakl.rl.Agent |
|---|
callNumber, DEFAULT_RANDOM_NUMBER_SEED, discountFactor, epsilon, greed, name, policy, printStartStateValueEvery, random, reinforcementFunction, state, UPDATE_ONLY_WHEN_GREEDY, world |
| Constructor Summary | |
|---|---|
AgentParallelized(int numThreads)
|
|
AgentParallelized(java.lang.String newName,
int numThreads)
|
|
| Method Summary | |
|---|---|
ValueFunction |
performValueIteration(ValueFunction newValueFunction,
ValueFunction valueFunction)
This is the MAIN learning function in the Agent. |
| Methods inherited from class net.pakl.rl.Agent |
|---|
experience, getAverageDelta, getBestActionForValueFrom, getDiscountFactor, getMaximumDelta, getName, getTotalDelta, initializeRandomSeed, performValueIterationTrajectorySample, performValueIterationUpdateOnState, setDiscountFactor, setEpsilon, setGreed, setPolicy, setReinforcementFunction, setState, setWorld |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected int threadsAtATime
| Constructor Detail |
|---|
public AgentParallelized(java.lang.String newName,
int numThreads)
public AgentParallelized(int numThreads)
| Method Detail |
|---|
public ValueFunction performValueIteration(ValueFunction newValueFunction,
ValueFunction valueFunction)
Agent
performValueIteration in class Agent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||