O - Observation typeA - Action typeAS - Action Space typepublic class Client<O,A,AS extends ActionSpace<A>> extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_SPACE |
static String |
CLOSE |
static String |
ENVS_ROOT |
static String |
MONITOR_CLOSE |
static String |
MONITOR_START |
static String |
OBSERVATION_SPACE |
static String |
RESET |
static String |
SHUTDOWN |
static String |
STEP |
static String |
UPLOAD |
static String |
V1_ROOT |
| Constructor and Description |
|---|
Client() |
| Modifier and Type | Method and Description |
|---|---|
ActionSpace |
getActionSpace() |
Set<String> |
listAll() |
static Set<String> |
listAll(String url) |
void |
monitorClose()
Flush all monitor data to disk
|
void |
monitorStart(String directory,
boolean force,
boolean resume)
Start monitoring.
|
O |
reset()
Reset the state of the environment and return an initial observation.
|
void |
serverShutdown()
Shutdown the server at the same url than this client
|
static void |
serverShutdown(String url)
Shutdown the server at the url
|
StepReply<O> |
step(A action)
Step the environment by one action
|
void |
upload(String trainingDir,
String apiKey)
Upload monitoring data to OpenAI servers.
|
void |
upload(String trainingDir,
String apiKey,
String algorithmId)
Upload monitoring data to OpenAI servers.
|
public static String V1_ROOT
public static String ENVS_ROOT
public static String MONITOR_START
public static String MONITOR_CLOSE
public static String CLOSE
public static String RESET
public static String SHUTDOWN
public static String UPLOAD
public static String STEP
public static String OBSERVATION_SPACE
public static String ACTION_SPACE
public static Set<String> listAll(String url)
url - url of the serverpublic static void serverShutdown(String url)
url - url of the serverpublic Set<String> listAll()
public StepReply<O> step(A action)
action - action to step the environment withpublic O reset()
public void monitorStart(String directory, boolean force, boolean resume)
directory - path to directory in which store the monitoring fileforce - clear out existing training data from this directory (by deleting every file prefixed with "openaigym.")resume - retain the training data already in this directory, which will be merged with our new datapublic void monitorClose()
public void upload(String trainingDir, String apiKey, String algorithmId)
trainingDir - directory that contains the monitoring dataapiKey - personal OpenAI API keyalgorithmId - an arbitrary string indicating the paricular version of the algorithm (including choices of parameters) you are running.public void upload(String trainingDir, String apiKey)
trainingDir - directory that contains the monitoring dataapiKey - personal OpenAI API keypublic void serverShutdown()
public ActionSpace getActionSpace()
Copyright © 2019. All rights reserved.