bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
example_22::InverseDecayLRScheduler Struct Reference

struct InverseDecayLRScheduler. Decays the learning rate it was given with the episodes, as alpha / (1 + episode / decay), but not below min_alpha. A constant learning rate keeps the estimates of Monte Carlo and temporal difference methods moving with every new return; a decaying one lets them settle on the mean. More...

#include <learning_rate_scheduler.h>

Public Member Functions

real_t operator() (real_t alpha, uint_t episode_idx) const

Public Attributes

real_t decay {100.0}
real_t min_alpha {0.001}

Detailed Description

struct InverseDecayLRScheduler. Decays the learning rate it was given with the episodes, as alpha / (1 + episode / decay), but not below min_alpha. A constant learning rate keeps the estimates of Monte Carlo and temporal difference methods moving with every new return; a decaying one lets them settle on the mean.

Member Function Documentation

◆ operator()()

real_t bitrl::rl::InverseDecayLRScheduler::operator() ( real_t alpha,
uint_t episode_idx ) const
inline

Member Data Documentation

◆ decay

◆ min_alpha


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