Package ai.djl.modality.rl.agent
Interface RlAgent
- All Known Implementing Classes:
EpsilonGreedy,QAgent
public interface RlAgent
-
Method Summary
Modifier and TypeMethodDescriptionchooseAction(RlEnv env, boolean training) Chooses the next action to take within theRlEnv.voidtrainBatch(RlEnv.Step[] batchSteps) Trains thisRlAgenton a batch ofRlEnv.Steps.
-
Method Details
-
chooseAction
Chooses the next action to take within theRlEnv.- Parameters:
env- the current environmenttraining- true if the agent is currently traning- Returns:
- the action to take
-
trainBatch
Trains thisRlAgenton a batch ofRlEnv.Steps.- Parameters:
batchSteps- the steps to train on
-