11 #include <gtest/gtest.h> 48 std::shared_ptr<Context> context = std::make_shared<Context>();
49 std::shared_ptr<Utils::RandomGenerator> gen = std::make_shared<Utils::RandomGenerator>();
50 std::shared_ptr<Policy> policy = std::make_shared<Policy>(
NBOFSTATES,
NBOFACTIONS, context->randomGenerator);
52 std::shared_ptr<CustomStateSpace> stateSpace = std::make_shared<CustomStateSpace>();
53 std::shared_ptr<CustomActionSpace> actionSpace = std::make_shared<CustomActionSpace>();
54 std::shared_ptr<MdpConfiguration> conf = std::make_shared<MdpConfiguration>(
"configuration.conf");
56 context->randomGenerator = gen;
57 context->policy = policy;
58 context->stateSpace = stateSpace;
59 context->actionSpace = actionSpace;
64 TEST(ReinforcementLearningTest, testBasic)
TEST(ReinforcementLearningTest, testBasic)
void updateCurrentState() override
RlTester(std::shared_ptr< Context > context)
double getReward() override
state_t getState() override
std::shared_ptr< Context > buildContext()