bitrl & cuberl Documentation
Simulation engine for reinforcement learning agents
Loading...
Searching...
No Matches
optimizer_type.h
Go to the documentation of this file.
1#ifndef OPTIMIZER_TYPE_H
2#define OPTIMIZER_TYPE_H
3
4#include "cuberl/extern/enum.h"
5#include <string>
6
7namespace cuberl {
8namespace maths{
9namespace optim{
10
14BETTER_ENUM(OptimzerType, char, INVALID_TYPE=-1, GD=0, SGD, ADAM, RSPROP);
15
20
21inline
22std::string to_string(OptimzerType type){return type._to_string();}
23
24inline
25constexpr bool compare(OptimzerType tp1, OptimzerType tp2){
26 return tp1 == tp2;
27}
28
29}
30
31}
32}
33#endif // OPTIMIZER_TYPE_H
constexpr bool compare(OptimzerType tp1, OptimzerType tp2)
Definition optimizer_type.h:25
std::string to_string(OptimzerType type)
to_string. Returns the RenderModeType to its stringrepresentation
Definition optimizer_type.h:22
BETTER_ENUM(OptimzerType, char, INVALID_TYPE=-1, GD=0, SGD, ADAM, RSPROP)
The RenderModeType enum.
Various utilities used when working with RL problems.
Definition cuberl_types.h:16