54 template < TESTNAME AttributeSelection,
bool isScalar = false >
66 double attributeSelectionThreshold,
67 double pairSelectionThreshold,
75 double attributeSelectionThreshold,
76 double pairSelectionThreshold,
187 #endif // GUM_IMDDI_H Safe iterators for Sequence.
void updateGraph()
Updates the tree after a new observation has been added.
NodeId __insertLeafInFunctionGraph(AbstractLeaf *, Int2Type< true >)
Computes the score of the given variables for the given node.
void __removeLeaf(NodeId)
Adds a new observation to the structure.
Headers of the abstract Leaf class.
void addObservation(const Observation *)
Adds a new observation to the structure.
void _updateNodeWithObservation(const Observation *newObs, NodeId currentNodeId)
Adds a new observation to the structure.
Base class for discrete random variable.
void _removeNode(NodeId removedNodeId)
Adds a new observation to the structure.
void __updateScore(const DiscreteVariable *, NodeId, VariableSelector &vs)
Computes the score of the given variables for the given node.
<agrum/FMDP/learning/FunctionGraph/leafAggregator.h>
<agrum/FMDP/learning/datastructure/incrementalGraphLearner>
The generic class for storing (ordered) sequences of objects.
void updateFunctionGraph()
Computes the score of the given variables for the given node.
<agrum/FMDP/learning/datastructure/leaves/abstractLeaf.h>
Base class for discrete random variable.
void __rebuildFunctionGraph()
Computes the score of the given variables for the given node.
gum is the global namespace for all aGrUM entities
HashTable< NodeId, AbstractLeaf *> __leafMap
The class for generic Hash Tables.
Sequence< const DiscreteVariable *> __varOrder
void _chgNodeBoundVar(NodeId chgedNodeId, const DiscreteVariable *desiredVar)
Adds a new observation to the structure.
Representation of a setA Set is a structure that contains arbitrary elements.
virtual void add(const DiscreteVariable &v)
Adds a new var to the variables of the multidimensional matrix.
Headers of the Concrete Leaf class.
~IMDDI()
Default destructor.
void __addLeaf(NodeId)
Adds a new observation to the structure.
void __downdateScore(const DiscreteVariable *, NodeId, VariableSelector &vs)
Computes the score of the given variables for the given node.
Headers of the Variable Selector class.
void insertSetOfVars(MultiDimFunctionGraph< double > *ret) const
Headers of MultiDimFunctionGraph.
IMDDI(MultiDimFunctionGraph< double > *target, double attributeSelectionThreshold, double pairSelectionThreshold, Set< const DiscreteVariable * > attributeListe, const DiscreteVariable *learnedValue)
Variable Learner constructor.
Headers of the interface specifying functions to be implemented by any incremental learner...
<agrum/FMDP/planning/FunctionGraph/variableselector.h>
double __attributeSelectionThreshold
The threshold above which we consider variables to be dependant.
Size Idx
Type for indexes.
NodeId _insertLeafNode(NodeDatabase< AttributeSelection, isScalar > *nDB, const DiscreteVariable *boundVar, Set< const Observation * > *sonsMap)
Adds a new observation to the structure.
Size NodeId
Type for node ids.
Headers of the Leaf Aggregator class.
void __updateNodeSet(Set< NodeId > &, const DiscreteVariable *, VariableSelector &)
For each node in the given set, this methods checks whether or not we should installed the given vari...
<agrum/FMDP/learning/datastructure/nodeDatabase.h>
Idx __nbTotalObservation
The total number of observation added to this tree.