Node value

<< Click to Display Table of Contents >>

Navigation:  Using SMILE Wrappers > Anatomy of a node >

Node value

The value of the node contains the values (typically, the marginal probability distribution or the expected utilities) calculated for the node by the inference algorithm. Unlike the definition, the value is not written as part of the network during I/O operations. In influence diagrams the node value is calculated for multiple sets of decisions. In such case, you also need to retrieve the indexing parents of node value to properly interpret the numbers. Note that value indexing parents are not the same as node parents. The value also stores its validity status; a flag set to true by the inference algorithm after it succesfully completes the calculations for the given node. You should not call any value-reading methods unless the value is valid.

Here are the methods related to node values:

Java:

Network.isValueValid

Network.getNodeValue

Network.getValueIndexingParents

Network.getValueIndexingParentIds

Python:

Network.is_value_valid

Network.get_node_value

Network.get_value_indexing_parents

Network.get_value_indexing_parent_ids

R:

Network$isValueValid

Network$getNodeValue

Network$getValueIndexingParents

Network$getValueIndexingParentIds

C#:

Network.IsValueValid

Network.getNodeValue

Network.getValueIndexingParents

Network.getValueIndexingParentIds