bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
cubeai::utils Namespace Reference

Functions

 BETTER_ENUM (LossType, char, INVALID_TYPE=-1, CROSS_ENTROPY=0, MSE)
 The RenderModeType enum.
 
std::string to_string (LossType type)
 to_string. Returns the RenderModeType to its stringrepresentation
 
constexpr bool compare (LossType tp1, LossType tp2)
 compare
 

Function Documentation

◆ BETTER_ENUM()

cubeai::utils::BETTER_ENUM ( LossType  ,
char  ,
INVALID_TYPE  = -1,
CROSS_ENTROPY  = 0,
MSE   
)

The RenderModeType enum.

◆ compare()

constexpr bool cubeai::utils::compare ( LossType  tp1,
LossType  tp2 
)
inlineconstexpr

compare

Parameters
tp1
tp2
Returns

◆ to_string()

std::string cubeai::utils::to_string ( LossType  type)
inline

to_string. Returns the RenderModeType to its stringrepresentation

Parameters
typeThe RenderModeType to convert
Returns
std::string