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 |
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
Definition at line 123 of file CPT2MLNFormulas.java.
edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::CPT2Rules | ( | RelationalNode | relNode | ) | [inline] |
Definition at line 136 of file CPT2MLNFormulas.java.
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
c |
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
constantAssignment |
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.
HashMap<String, Attribute> edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::attrs [protected] |
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.
CPF edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::cpf [protected] |
Definition at line 129 of file CPT2MLNFormulas.java.
FastVector edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::fvAttribs [package] |
Definition at line 131 of file CPT2MLNFormulas.java.
Definition at line 133 of file CPT2MLNFormulas.java.
BeliefNode [] edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::nodes [package] |
Definition at line 130 of file CPT2MLNFormulas.java.
Definition at line 128 of file CPT2MLNFormulas.java.
HashMap<Attribute, RelationalNode> edu::tum::cs::srl::bayesnets::CPT2MLNFormulas::CPT2Rules::relNodes [package] |
Definition at line 132 of file CPT2MLNFormulas.java.
Definition at line 134 of file CPT2MLNFormulas.java.