bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
first_visit_monte_carlo.cpp File Reference
Include dependency graph for first_visit_monte_carlo.cpp:

Classes

struct  example_22::RandomActionSelector
struct  example_22::TrajectoryGenerator
struct  example_22::DiscountGenerator
class  example_22::FrozenLake< side_size >
class  example_22::RESTRLEnvClient
 Utility class to facilitate HTTP requests between the environments REST API and C++ drivers. More...
struct  example_22::InverseDecayLRScheduler
 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...
class  example_22::RLSerialAgentTrainer< EnvType, AgentType >
struct  example_22::RLSerialTrainerConfig
 The RLSerialTrainerConfig struct. Configuration struct for the serial RL agent trainer. More...
class  example_22::FirstVisitMCSolver< EnvType, TrajectoryGenerator, DecayLRSchedule, DiscountGenerator >
struct  example_22::FirstVisitMCSolverConfig
class  example_22::EpsilonGreedyPolicy
 The EpsilonGreedyPolicy class. More...

Namespaces

namespace  example_22

Typedefs

typedef FrozenLake< 4 > example_22::env_type
typedef TrajectoryGenerator example_22::trajectory_generator_type
typedef InverseDecayLRScheduler example_22::learning_rate_scheduler_type
typedef FirstVisitMCSolverConfig example_22::solver_config_type
typedef DiscountGenerator example_22::discount_generator_type
typedef FirstVisitMCSolver< env_type, trajectory_generator_type, learning_rate_scheduler_type, discount_generator_type > example_22::solver_type
using example_22::real_t
 real_t
using example_22::uint_t
 uint_t

Functions

std::mt19937 example_22::generator (SEED)
int main ()

Variables

const std::string example_22::SERVER_URL = "http://0.0.0.0:8001/api"
const uint_t example_22::SEED = 42

Function Documentation

◆ main()

int main ( )