tutorial_cem

This is an example to add a Cross Entropy Method algorithm.

class SimpleCEM(env_spec, policy, sampler)

Simple Cross Entropy Method.

Parameters
train(self, trainer)

Get samples and train the policy.

Parameters

trainer (Trainer) – Trainer.

tutorial_cem(ctxt=None)

Train CEM with Cartpole-v1 environment.

Parameters

ctxt (ExperimentContext) – The experiment configuration used by Trainer to create the Snapshotter.