50#ifndef GUM_FMDP_LEARNER_H
51#define GUM_FMDP_LEARNER_H
73 template <
TESTNAME VariableAttributeSelection,
97 FMDPLearner(
double learningThreshold,
bool actionReward,
double similarityThreshold = 0.05);
208 double rMax()
const override;
214 double modaMax()
const override;
Headers of the Learning Strategy interface.
Base class for discrete random variable.
double rMax() const override
learnerSize
RewardLearnerType * _instantiateRewardLearner_(MultiDimFunctionGraph< double > *target, gum::VariableSet &mainVariables)
Initializes the learner.
typename LearnerSelect< LearnerSelection, IMDDI< RewardAttributeSelection, true >, ITI< RewardAttributeSelection, true > >::type RewardLearnerType
HashTable< Idx, RewardLearnerType * > _actionRewardLearners_
const double _similarityThreshold_
void initialize(FMDP< double > *fmdp) override
Initializes the learner.
MultiDimFunctionGraph< double > * _instantiateFunctionGraph_()
Initializes the learner.
double _modaMax_
learnerSize
FMDP< double > * _fmdp_
The FMDP to store the learned model.
bool addObservation(Idx actionId, const Observation *obs) override
Gives to the learner a new transition.
HashTable< const DiscreteVariable *, VariableLearnerType * > VarLearnerTable
~FMDPLearner() override
Default destructor.
const double _learningThreshold_
RewardLearnerType * _rewardLearner_
VariableLearnerType * _instantiateVarLearner_(MultiDimFunctionGraph< double > *target, gum::VariableSet &mainVariables, const DiscreteVariable *learnedVar)
Initializes the learner.
FMDPLearner(double learningThreshold, bool actionReward, double similarityThreshold=0.05)
Default constructor.
void updateFMDP() override
Starts an update of datastructure in the associated FMDP.
HashTable< Idx, VarLearnerTable * > _actionLearners_
typename LearnerSelect< LearnerSelection, IMDDI< VariableAttributeSelection, false >, ITI< VariableAttributeSelection, false > >::type VariableLearnerType
const IVisitableGraphLearner * varLearner(Idx actionId, const DiscreteVariable *var) const override
extractCount
Size size() override
learnerSize
double modaMax() const override
learnerSize
The class for generic Hash Tables.
<agrum/FMDP/SDyna/ILearningStrategy.h>
Learn a graphical representation of a function as a decision tree.
<agrum/FMDP/SDyna/IVisitableGraphLearner.h>
Template Implementations of the FMDPLearner class.
std::size_t Size
In aGrUM, hashed values are unsigned long int.
Size Idx
Type for indexes.
Headers of the IMDDI class.
Headers of the ITI class.
gum is the global namespace for all aGrUM entities
Set< const DiscreteVariable * > VariableSet