|
bitsim
Model, simulate, estimate and control robots in C++
|
Classes | |
| struct | ActorImpl |
| struct | CriticImpl |
| struct | SlowCartPole |
| struct | Networks |
| struct | Training |
| class | ParallelEnvs |
| Several copies of an environment, stepped at the same time on the threads of a bitsim::utils::concurrency::ThreadPool. More... | |
| class | CartPole |
| The cart-pole of Barto, Sutton and Anderson, simulated in this process with bitsim::dynamics::CartPoleDynamics. More... | |
| class | TorchCategorical |
Typedefs | |
| using | steady = std::chrono::steady_clock |
| using | real_t |
| real_t | |
| typedef torch::Tensor | torch_tensor_t |
| torch_tensor_t | |
| using | uint_t |
| uint_t | |
Functions | |
| torch_tensor_t | to_tensor (const std::vector< real_t > &state) |
| TORCH_MODULE (Actor) | |
| TORCH_MODULE (Critic) | |
| pg::PPOConfig | ppo_config () |
| real_t | greedy_return (Actor &actor) |
| real_t | seconds (steady::duration d) |
| real_t | tail_mean (const std::vector< real_t > &v) |
| Training | one_at_a_time (uint_t n_episodes) |
| template<typename Env> | |
| Training | in_rounds (uint_t n_episodes, uint_t n_copies, bool threads, uint_t max_rounds=0) |
| void | report (const std::string &name, const Training &t) |
| int | run (uint_t n_episodes, uint_t n_copies) |
Variables | |
| const uint_t | SEED = 42 |
| const uint_t | MAX_STEPS = 500 |
| const real_t | LEARNING_RATE = 0.001 |
| using bitsim::real_t |
| using ppo_parallel_rollouts::steady = std::chrono::steady_clock |
| typedef torch::Tensor bitrl::torch_tensor_t |
| using bitsim::uint_t |
| real_t ppo_parallel_rollouts::greedy_return | ( | Actor & | actor | ) |
| Training ppo_parallel_rollouts::in_rounds | ( | uint_t | n_episodes, |
| uint_t | n_copies, | ||
| bool | threads, | ||
| uint_t | max_rounds = 0 ) |
| pg::PPOConfig ppo_parallel_rollouts::ppo_config | ( | ) |
| void ppo_parallel_rollouts::report | ( | const std::string & | name, |
| const Training & | t ) |
| real_t ppo_parallel_rollouts::seconds | ( | steady::duration | d | ) |
| torch_tensor_t ppo_parallel_rollouts::to_tensor | ( | const std::vector< real_t > & | state | ) |
| ppo_parallel_rollouts::TORCH_MODULE | ( | Actor | ) |
| ppo_parallel_rollouts::TORCH_MODULE | ( | Critic | ) |
| const real_t ppo_parallel_rollouts::LEARNING_RATE = 0.001 |
| const uint_t ppo_parallel_rollouts::MAX_STEPS = 500 |
| const uint_t ppo_parallel_rollouts::SEED = 42 |