Skip to Content

Temporal Indices

Context

In BayesiaLab, you can assign Temporal Indices to nodes. This allows you to define a temporal order between nodes, which learning algorithms take into account when a network is learned. For instance, a learning algorithm would not discover that node A\mathit{A} is a parent or ancestor of node B\mathit{B} if the Temporal Index of node A\mathit{A} is greater than the Temporal Index of node B\mathit{B}.

Temporal Indices can take on any real values equal to or greater than 0. A Temporal Index of 0 refers to nodes associated with the oldest possible point on a timeline, while higher values indicate that nodes are associated with more recent points on that same timeline. However, no meaning is associated with the interval between individual Temporal Indices. For learning purposes, the Temporal Indices of 0 and 1 convey the same temporal ordering as the values of 0.2 and 0.3. By default, there are no Temporal Indices assigned to nodes.

Usage

Open Menus > Edit > Edit Temporal Indices to edit indices for several nodes at once. You can also use these controls.

  • Select Node Contextual Menu > Properties > Temporal Index and specify a value.
  • Select Graph Panel Contextual Menu > Edit Temporal Indices to open the Edit Temporal Indices window.
  • Click on the Temporal Index indicator in the Status Bar to bring up the Edit Temporal Indices window.

When setting a value from Node Contextual Menu > Properties > Temporal Index, the Propagate Index to the Classes button applies the same index to all nodes in the selected classes (or clears it if there is no index).

Example & workflow animation

The Visit Asia example assigns Age\mathit{Age} an index of 0 and assigns Smoking\mathit{Smoking} and Visit Asia\mathit{Visit\ Asia} an index of 0.5. The condition nodes have index 1. Dyspnea\mathit{Dyspnea} and X-Ray\mathit{X\text{-}Ray} have index 2.

To color the groups, select all nine rows in Edit Temporal Indices, click Colors, then select Associate Default Colors with Temporal Index. Click OK to return to the table.

Colors dialog with Associate Default Colors with Temporal Index selected

Click the Temporal Indices column heading to sort in ascending order. Nodes with the same index now appear together and share a color.

Edit Temporal Indices with nine Visit Asia nodes sorted into four color groups at 0, 0.5, 1, and 2

Import/export Temporal Indices

The Import and Export buttons in the Edit Temporal Indices window allow you to manage Temporal Indices using Dictionaries.