bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
loss_type.h
Go to the documentation of this file.
1#ifndef LOSS_TYPE_H
2#define LOSS_TYPE_H
3
4#include "cuberl/extern/enum.h"
5#include <string>
6
7namespace cubeai{
8namespace utils{
9
13BETTER_ENUM(LossType, char, INVALID_TYPE=-1,
14 CROSS_ENTROPY=0, MSE);
15
20
21inline
22std::string to_string(LossType type){return type._to_string();}
23
30inline
31constexpr bool compare(LossType tp1, LossType tp2){
32 return tp1 == tp2;
33}
34
35
36}
37}
38
39#endif // LOSS_TYPE_H
std::string to_string(LossType type)
to_string. Returns the RenderModeType to its stringrepresentation
Definition loss_type.h:22
constexpr bool compare(LossType tp1, LossType tp2)
compare
Definition loss_type.h:31
BETTER_ENUM(LossType, char, INVALID_TYPE=-1, CROSS_ENTROPY=0, MSE)
The RenderModeType enum.
Definition mc_tree_search_solver.h:22