|
bitsim
Model, simulate, estimate and control robots in C++
|
#include "bitrl/base/bitrl_types.h"#include "bitrl/maths/optimization/optimizer_type.h"#include "bitrl/maths/optimization/pytorch_optimizer_factory.h"#include "bitrl/maths/statistics/distributions/torch_categorical.h"#include <torch/torch.h>#include <any>#include <iomanip>#include <iostream>#include <map>#include <string>
Classes | |
| struct | pytorch_policy_network::PolicyImpl |
| class | pytorch_policy_network::TorchCategorical |
Namespaces | |
| namespace | pytorch_policy_network |
Typedefs | |
| using | pytorch_policy_network::real_t |
| real_t | |
| typedef torch::Tensor | pytorch_policy_network::torch_tensor_t |
| torch_tensor_t | |
| using | pytorch_policy_network::uint_t |
| uint_t | |
Enumerations | |
| enum class | pytorch_policy_network::OptimizerType |
| The RenderModeType enum. More... | |
Functions | |
| pytorch_policy_network::TORCH_MODULE (Policy) | |
| void | pytorch_policy_network::print_probabilities (Policy &policy, const std::string &when) |
| int | main () |
Variables | |
| const uint_t | pytorch_policy_network::N_SITUATIONS = 2 |
| const uint_t | pytorch_policy_network::N_ARMS = 3 |
| const uint_t | pytorch_policy_network::BATCH_SIZE = 64 |
| const uint_t | pytorch_policy_network::N_UPDATES = 300 |
| const real_t | pytorch_policy_network::LEARNING_RATE = 0.01 |
| const real_t | pytorch_policy_network::REWARD_NOISE = 0.5 |
| const real_t | pytorch_policy_network::MEAN_REWARD [N_SITUATIONS][N_ARMS] = {{0.2, 0.5, 1.0}, {1.0, 0.3, 0.1}} |
| int main | ( | ) |