bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitrl::rl::algos::es Namespace Reference

Classes

struct  ESConfig
 The settings of EvolutionStrategy. More...
class  PortableNormal
 Normal random numbers that are the same on every machine. More...
struct  GenerationResult
 What one generation of EvolutionStrategy gave. More...
class  EvolutionStrategy
 The evolution strategy of Salimans et al. (2017): a search for the parameters that maximise a fitness, which needs only the fitness, not its gradient. More...
class  MLPPolicy
 A small neural network whose weights are a flat vector of parameters, for EvolutionStrategy. More...

Functions

template<typename EnvType, typename Act>
real_t episode_return (EnvType &env, Act &&act, uint_t seed, uint_t max_steps)
 The undiscounted return of one episode of env, reset with seed, acting with act, at most max_steps steps.

Function Documentation

◆ episode_return()

template<typename EnvType, typename Act>
real_t bitrl::rl::algos::es::episode_return ( EnvType & env,
Act && act,
uint_t seed,
uint_t max_steps )

The undiscounted return of one episode of env, reset with seed, acting with act, at most max_steps steps.