Quantum Fog  0.9.3
Public Member Functions | Public Attributes | List of all members
PBNT.Node.Clique Class Reference
Inheritance diagram for PBNT.Node.Clique:
Inheritance graph
[legend]
Collaboration diagram for PBNT.Node.Clique:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, nodes)
 
def add_neighbor (self, sepset, node)
 
def init_potential (self, node)
 
def reinit_potential (self)
 
def contains (self, nodes)
 
- Public Member Functions inherited from PBNT.Node.Node
def __init__ (self, id, index=-1, name="anonymous")
 
def __lt__ (self, other)
 
def __hash__ (self)
 
def __eq__ (self, right)
 
def add_neighbor (self, node)
 
def remove_neighbor (self, node)
 
def is_neighbor (self, node)
 

Public Attributes

 nodes
 
 sepsets
 
 potential
 
- Public Attributes inherited from PBNT.Node.Node
 neighbors
 
 visited
 
 id
 
 index
 
 name
 

Detailed Description

Clique inherits from Node.  Clique's are clusters which act as a single node within a JoinTree. They are equivalent in JoinTrees to BayesNodes' in Bayesian Networks.  The main difference is that they have "potentials" instead of distributions.  Potentials are in effect the same as a conditional distribution, but unlike conditional distribtions, there isn't as clear a sense that the distribution is over one node and conditioned on a number of others.

Member Function Documentation

def PBNT.Node.Clique.init_potential (   self,
  node 
)
We want to satisfy the formula self.potential = self.potential*P(node|node.parents).

The documentation for this class was generated from the following file: