cem_cartpole

This is an example to train a task with Cross Entropy Method.

Here it runs CartPole-v1 environment with 100 epoches.

Results:

AverageReturn: 100 RiseTime: epoch 8

cem_cartpole(ctxt=None, seed=1)

Train CEM with Cartpole-v1 environment.

Parameters
  • ctxt (garage.experiment.ExperimentContext) – The experiment configuration used by Trainer to create the snapshotter.

  • seed (int) – Used to seed the random number generator to produce determinism.