bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
export_policy Namespace Reference

Classes

struct  PolicyNetworkImpl
class  EpsilonGreedyPolicy
 The EpsilonGreedyPolicy class. More...
class  MaxTabularPolicy
 class MaxTabularPolicy More...
class  CliffWalk

Typedefs

using real_t
 real_t
typedef torch::Tensor torch_tensor_t
 torch_tensor_t
using uint_t
 uint_t

Functions

 TORCH_MODULE (PolicyNetwork)
template<typename Policy>
real_t play (Policy &&policy)
MaxTabularPolicy train_q_learning ()
void imitate (PolicyNetwork &network, const MaxTabularPolicy &policy)

Variables

const std::string POLICY_FILE = "policy.csv"
const std::string NETWORK_FILE = "policy_network.pt"

Typedef Documentation

◆ real_t

◆ torch_tensor_t

typedef torch::Tensor bitrl::torch_tensor_t

◆ uint_t

Function Documentation

◆ imitate()

void export_policy::imitate ( PolicyNetwork & network,
const MaxTabularPolicy & policy )

◆ play()

template<typename Policy>
real_t export_policy::play ( Policy && policy)

◆ TORCH_MODULE()

export_policy::TORCH_MODULE ( PolicyNetwork )

◆ train_q_learning()

MaxTabularPolicy export_policy::train_q_learning ( )

Variable Documentation

◆ NETWORK_FILE

const std::string export_policy::NETWORK_FILE = "policy_network.pt"

◆ POLICY_FILE

const std::string export_policy::POLICY_FILE = "policy.csv"