Scheduler
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
mdp
learning
matrixLearning.h
Go to the documentation of this file.
1
10
#ifndef MATRIXLEARNING_H
11
#define MATRIXLEARNING_H
12
13
#include <vector>
14
15
#include <
mdp/action_impl.h
>
16
#include <
mdp/state.h
>
17
#include "
learningStrategy.h
"
18
19
namespace
Mdp
20
{
21
struct
Context;
22
23
class
MatrixLearning
:
public
LearningStrategy
24
{
25
public
:
26
static
constexpr
const
char
*
configKey
=
"matrixLearning"
;
27
public
:
28
MatrixLearning
(std::shared_ptr<Context>
context
);
29
void
initializeModel
();
30
void
updateModel
();
31
private
:
32
void
updateMatrix();
33
34
state_t
previousState;
35
action_t
previousAction;
36
std::vector<std::vector<std::vector<int>>> occurences;
37
int
nbOfUpdates{0};
38
};
39
40
41
}
42
43
44
45
46
47
48
49
#endif
Mdp::MatrixLearning::initializeModel
void initializeModel()
Definition:
matrixLearning.cpp:31
learningStrategy.h
Mdp::MatrixLearning
Definition:
matrixLearning.h:23
Mdp::MatrixLearning::MatrixLearning
MatrixLearning(std::shared_ptr< Context > context)
Definition:
matrixLearning.cpp:22
Mdp::MatrixLearning::updateModel
void updateModel()
Definition:
matrixLearning.cpp:38
Mdp::MatrixLearning::configKey
static constexpr const char * configKey
Definition:
matrixLearning.h:26
Mdp::action_t
size_t action_t
Definition:
action_impl.h:18
Mdp::LearningStrategy
Definition:
learningStrategy.h:21
Mdp
Definition:
action.h:18
state.h
Mdp::state_t
size_t state_t
Definition:
state.h:19
Mdp::LearningStrategy::context
std::shared_ptr< Context > context
Definition:
learningStrategy.h:28
action_impl.h
Generated on Sun Nov 26 2017 17:01:35 for Scheduler by
1.8.11