public class ALEMDP extends Object implements MDP<ALEMDP.GameScreen,Integer,org.deeplearning4j.rl4j.space.DiscreteSpace>
| Modifier and Type | Class and Description |
|---|---|
static class |
ALEMDP.Configuration |
static class |
ALEMDP.GameScreen |
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
actions |
protected org.bytedeco.javacpp.ale.ALEInterface |
ale |
protected ALEMDP.Configuration |
configuration |
protected org.deeplearning4j.rl4j.space.DiscreteSpace |
discreteSpace |
protected org.deeplearning4j.rl4j.space.ObservationSpace<ALEMDP.GameScreen> |
observationSpace |
protected boolean |
render |
protected String |
romFile |
protected double |
scaleFactor |
| Constructor and Description |
|---|
ALEMDP(String romFile) |
ALEMDP(String romFile,
boolean render) |
ALEMDP(String romFile,
boolean render,
ALEMDP.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.deeplearning4j.rl4j.space.DiscreteSpace |
getActionSpace() |
org.deeplearning4j.rl4j.space.ObservationSpace<ALEMDP.GameScreen> |
getObservationSpace() |
boolean |
isDone() |
ALEMDP |
newInstance() |
ALEMDP.GameScreen |
reset() |
void |
setupGame() |
org.deeplearning4j.gym.StepReply<ALEMDP.GameScreen> |
step(Integer action) |
protected org.bytedeco.javacpp.ale.ALEInterface ale
protected final int[] actions
protected final org.deeplearning4j.rl4j.space.DiscreteSpace discreteSpace
protected final org.deeplearning4j.rl4j.space.ObservationSpace<ALEMDP.GameScreen> observationSpace
protected final String romFile
protected final boolean render
protected final ALEMDP.Configuration configuration
protected double scaleFactor
public ALEMDP(String romFile)
public ALEMDP(String romFile, boolean render)
public ALEMDP(String romFile, boolean render, ALEMDP.Configuration configuration)
public void setupGame()
public boolean isDone()
isDone in interface MDP<ALEMDP.GameScreen,Integer,org.deeplearning4j.rl4j.space.DiscreteSpace>public ALEMDP.GameScreen reset()
reset in interface MDP<ALEMDP.GameScreen,Integer,org.deeplearning4j.rl4j.space.DiscreteSpace>public void close()
close in interface MDP<ALEMDP.GameScreen,Integer,org.deeplearning4j.rl4j.space.DiscreteSpace>public org.deeplearning4j.gym.StepReply<ALEMDP.GameScreen> step(Integer action)
step in interface MDP<ALEMDP.GameScreen,Integer,org.deeplearning4j.rl4j.space.DiscreteSpace>public org.deeplearning4j.rl4j.space.ObservationSpace<ALEMDP.GameScreen> getObservationSpace()
getObservationSpace in interface MDP<ALEMDP.GameScreen,Integer,org.deeplearning4j.rl4j.space.DiscreteSpace>public org.deeplearning4j.rl4j.space.DiscreteSpace getActionSpace()
getActionSpace in interface MDP<ALEMDP.GameScreen,Integer,org.deeplearning4j.rl4j.space.DiscreteSpace>public ALEMDP newInstance()
newInstance in interface MDP<ALEMDP.GameScreen,Integer,org.deeplearning4j.rl4j.space.DiscreteSpace>Copyright © 2017. All rights reserved.