|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| class | QNetImpl |
| class | Gridworld |
| class | RLSerialAgentTrainer |
| struct | RLSerialTrainerConfig |
| The RLSerialTrainerConfig struct. Configuration struct for the serial RL agent trainer. More... | |
| class | EpsilonGreedyPolicy |
| The EpsilonGreedyPolicy class. More... | |
| class | CSVWriter |
| The CSVWriter class. Handles writing into CSV file format. More... | |
| class | ExperienceBuffer |
| The ExperienceBuffer class. A buffer based on boost::circular_buffer to accumulate items of type ExperienceType. see for example the A2C algorithm in A2C.h and rl_example_15. More... | |
Typedefs | |
| typedef Gridworld< 4 > | env_type |
| typedef env_type::state_type | state_type |
| typedef env_type::time_step_type | time_step_type |
| typedef std::tuple< std::vector< float_t >, uint_t, float_t, std::vector< float_t >, uint_t > | experience_tuple_type |
| typedef bitrl::utils::ExperienceBuffer< experience_tuple_type > | experience_buffer_type |
| using | float_t |
| float | |
| using | real_t |
| real_t | |
| typedef torch::Tensor | torch_tensor_t |
| torch_tensor_t | |
| using | uint_t |
| uint_t | |
| using | float_t |
| float | |
| using | int_t |
| integer type | |
| using | real_t |
| real_t | |
| typedef torch::Tensor | torch_tensor_t |
| torch_tensor_t | |
| using | uint_t |
| uint_t | |
Functions | |
| TORCH_MODULE (QNet) | |
| std::vector< float_t > | flattened_observation (const state_type &state) |
| template<typename T, uint_t index> | |
| std::vector< T > | get (const std::vector< experience_tuple_type > &experience) |
Variables | |
| const std::string | EXPERIMENT_ID = "3" |
| constexpr uint_t | l1 = 64 |
| constexpr uint_t | l2 = 150 |
| constexpr uint_t | l3 = 100 |
| constexpr uint_t | l4 = 4 |
| constexpr uint_t | SEED = 42 |
| constexpr uint_t | TOTAL_EPOCHS = 1000 |
| constexpr uint_t | TOTAL_ITRS_PER_EPOCH = 50 |
| constexpr real_t | GAMMA = 0.9 |
| constexpr real_t | EPSILON = 1.0 |
| constexpr real_t | LEARNING_RATE = 1.0e-3 |
| constexpr uint_t | BATCH_SIZE = 200 |
| constexpr uint_t | EXPERIENCE_BUFFER_SIZE = 1000 |
Use DQN on Gridworld
| typedef Gridworld< 4 > rl_example_12::env_type |
| typedef std::tuple<std::vector<float_t>, uint_t, float_t, std::vector<float_t>, uint_t> rl_example_12::experience_tuple_type |
| using bitsim::float_t |
float
| using bitsim::float_t |
float
| using bitsim::int_t |
integer type
| using bitsim::real_t |
| using bitsim::real_t |
| typedef torch::Tensor bitrl::torch_tensor_t |
| typedef torch::Tensor bitrl::torch_tensor_t |
| using bitsim::uint_t |
| using bitsim::uint_t |
| std::vector< float_t > rl_example_12::flattened_observation | ( | const state_type & | state | ) |
| std::vector< T > rl_example_12::get | ( | const std::vector< experience_tuple_type > & | experience | ) |
| rl_example_12::TORCH_MODULE | ( | QNet | ) |
|
constexpr |
|
constexpr |
|
constexpr |
| const std::string rl_example_12::EXPERIMENT_ID = "3" |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |
|
constexpr |