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

The with_decay_epsilon_option_mixin struct. More...

#include <rl_mixins.h>

Inheritance diagram for bitrl::rl::with_decay_epsilon_option_mixin:

Public Member Functions

void seed_generator ()
 seed_generator. Seeds the generator with seed
real_t decay_eps (uint_t episode_index)
 decay_eps
template<typename VectorType>
uint_t choose_action_index (const VectorType &values) const

Public Attributes

real_t eps_init
real_t eps
real_t min_eps
real_t max_eps
real_t epsilon_decay
uint_t n_actions
uint_t seed
EpsilonDecayOptionType decay_op
std::mt19937 generator {}
 The generator of the random numbers. seed_generator() seeds it with seed; a new generator in every call would give the same number.

Detailed Description

Member Function Documentation

◆ choose_action_index()

template<typename VectorType>
uint_t bitrl::rl::with_decay_epsilon_option_mixin::choose_action_index ( const VectorType & values) const

◆ decay_eps()

real_t bitrl::rl::with_decay_epsilon_option_mixin::decay_eps ( uint_t episode_index)

decay_eps

Parameters
episode_index
Returns

◆ seed_generator()

void bitrl::rl::with_decay_epsilon_option_mixin::seed_generator ( )
inline

seed_generator. Seeds the generator with seed

Member Data Documentation

◆ decay_op

EpsilonDecayOptionType bitrl::rl::with_decay_epsilon_option_mixin::decay_op

◆ eps

real_t bitrl::rl::with_decay_epsilon_option_mixin::eps

◆ eps_init

real_t bitrl::rl::with_decay_epsilon_option_mixin::eps_init

◆ epsilon_decay

real_t bitrl::rl::with_decay_epsilon_option_mixin::epsilon_decay

◆ generator

std::mt19937 bitrl::rl::with_decay_epsilon_option_mixin::generator {}
mutable

The generator of the random numbers. seed_generator() seeds it with seed; a new generator in every call would give the same number.

◆ max_eps

real_t bitrl::rl::with_decay_epsilon_option_mixin::max_eps

◆ min_eps

real_t bitrl::rl::with_decay_epsilon_option_mixin::min_eps

◆ n_actions

uint_t bitrl::rl::with_decay_epsilon_option_mixin::n_actions

◆ seed

uint_t bitrl::rl::with_decay_epsilon_option_mixin::seed

The documentation for this struct was generated from the following file: