|
bitsim
Model, simulate, estimate and control robots in C++
|
#include "bitrl/base/bitrl_config.h"#include "bitrl/base/bitrl_types.h"#include "bitsim/bitsim_consts.h"#include <vector>

Go to the source code of this file.
Namespaces | |
| namespace | bitrl |
| Various utilities used when working with RL problems. | |
| namespace | bitrl::rl |
| namespace | bitrl::rl::algos |
| namespace | bitrl::rl::algos::pg |
Functions | |
| std::vector< torch_tensor_t > | bitrl::rl::algos::pg::compute_loss_item (const std::vector< real_t > &rewards, const std::vector< torch_tensor_t > &log_probs) |
| compute_loss_item. Compute the product -rewards[i] * log_probs[i] | |
| std::vector< real_t > | bitrl::rl::algos::pg::compute_baseline_with_constant (const std::vector< real_t > &rewards, real_t constant) |
| Compute the baseline using a user-defined constant value from the given rewards. | |
| std::vector< real_t > | bitrl::rl::algos::pg::compute_baseline_with_mean (const std::vector< real_t > &rewards) |
| Compute the baseline using the mean value of the provided rewards. | |
| std::vector< real_t > | bitrl::rl::algos::pg::compute_baseline_with_standardization (const std::vector< real_t > &rewards, real_t eps=bitsim::consts::TOLERANCE) |
| Compute the baseline using standarization also known as whitening. | |