edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules Class Reference

List of all members.

Public Member Functions

 CPT2Rules (RelationalNode relNode)
Formula getConjunction (Rule rule, Map< String, String > constantAssignment) throws Exception
double getProbability (Rule r)
RelationalNode getRelationalNode (Condition c)
int getZerosInCPT ()
Rule[] learnRules (Map< String, String > constantAssignment) throws Exception

Protected Member Functions

void walkCPT4InstanceCollection (int[] addr, int i, Map< String, String > constantSettings, Instances instances) throws Exception
void walkCPT4ValueSet (int[] addr, int i, Set< Double > values)

Protected Attributes

HashMap< String, Attribute > attrs
CPF cpf
RelationalBeliefNetwork rbn

Package Attributes

FastVector fvAttribs
RelationalNode mainNode
BeliefNode[] nodes
HashMap< Attribute,
RelationalNode
relNodes
int zerosInCPT

Detailed Description

the task here is to learn a decision tree as a compact representation of a CPT, the predictors being the values of all nodes relevant to the CPT (parents and child) and the predicted class attribute being the probability value

Author:
jain

Definition at line 123 of file CPT2MLNFormulas.java.


Constructor & Destructor Documentation

edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::CPT2Rules ( RelationalNode  relNode  )  [inline]

Definition at line 136 of file CPT2MLNFormulas.java.


Member Function Documentation

Formula edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::getConjunction ( Rule  rule,
Map< String, String >  constantAssignment 
) throws Exception [inline]

Definition at line 299 of file CPT2MLNFormulas.java.

double edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::getProbability ( Rule  r  )  [inline]

Definition at line 313 of file CPT2MLNFormulas.java.

RelationalNode edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::getRelationalNode ( Condition  c  )  [inline]

gets the relational node that corresponds to the attribute that is being checked against in the given condition

Parameters:
c 
Returns:

Definition at line 295 of file CPT2MLNFormulas.java.

int edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::getZerosInCPT (  )  [inline]

Definition at line 209 of file CPT2MLNFormulas.java.

Rule [] edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::learnRules ( Map< String, String >  constantAssignment  )  throws Exception [inline]

collects instances for the given constant assignment and learns a decision tree for which it returns the set of rules

Parameters:
constantAssignment 
Returns:
Exceptions:
Exception 

Definition at line 219 of file CPT2MLNFormulas.java.

void edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::walkCPT4InstanceCollection ( int[]  addr,
int  i,
Map< String, String >  constantSettings,
Instances  instances 
) throws Exception [inline, protected]

Definition at line 237 of file CPT2MLNFormulas.java.

void edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::walkCPT4ValueSet ( int[]  addr,
int  i,
Set< Double >  values 
) [inline, protected]

Definition at line 176 of file CPT2MLNFormulas.java.


Member Data Documentation

maps attribute names to actual attributes. Note: except for the probability value attribute "prob", the names of attributes correspond to names of relational node

Definition at line 127 of file CPT2MLNFormulas.java.

Definition at line 129 of file CPT2MLNFormulas.java.

Definition at line 131 of file CPT2MLNFormulas.java.

Definition at line 133 of file CPT2MLNFormulas.java.

Definition at line 130 of file CPT2MLNFormulas.java.

Definition at line 128 of file CPT2MLNFormulas.java.

Definition at line 132 of file CPT2MLNFormulas.java.

Definition at line 134 of file CPT2MLNFormulas.java.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations


srldb
Author(s): Dominik Jain, Stefan Waldherr, Moritz Tenorth
autogenerated on Fri Jan 11 09:58:43 2013