tutorial_cem
¶
This is an example to add a Cross Entropy Method algorithm.
- class SimpleCEM(env_spec, policy, sampler)¶
Simple Cross Entropy Method.
- Parameters
env_spec (EnvSpec) – Environment specification.
policy (Policy) – Action policy.
sampler (garage.sampler.Sampler) – Sampler.
- tutorial_cem(ctxt=None)¶
Train CEM with Cartpole-v1 environment.
- Parameters
ctxt (ExperimentContext) – The experiment configuration used by
Trainer
to create theSnapshotter
.