|
bitsim
Model, simulate, estimate and control robots in C++
|
#include "bitrl/base/bitrl_types.h"#include "bitrl/maths/vector_math.h"#include "bitrl/rl/policies/softmax_policy.h"#include "bitsim/utils/io/csv_file_writer.h"#include <algorithm>#include <cmath>#include <fstream>#include <iostream>#include <numeric>#include <random>#include <tuple>#include <utility>
Namespaces | |
| namespace | exe |
Typedefs | |
| template<typename T> | |
| using | exe::DynVec |
| Dynamically sized row vector. | |
| using | exe::real_t |
| real_t | |
| using | exe::uint_t |
| uint_t | |
Functions | |
| real_t | exe::get_reward (real_t prob, uint_t n=10) |
| void | exe::update_record (std::vector< std::vector< real_t > > &records, uint_t action, real_t r) |
| uint_t | exe::get_best_arm (const std::vector< std::vector< real_t > > &records) |
| std::vector< real_t > | exe::get_probs (uint_t n) |
| DynVec< real_t > | exe::extract_part (const std::vector< std::vector< real_t > > &values) |
| int | main () |
Variables | |
| const uint_t | exe::N = 10 |
| const auto | exe::N_EXPERIMENTS = 500 |
| const real_t | exe::MAX_REWARD = 11.0 |
| const auto | exe::TAU = 0.7 |
| const uint | exe::SEED = 42 |
| int main | ( | ) |