|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ksu.cis.bnj.bbn.learning.LearnerScore
edu.ksu.cis.bnj.bbn.learning.score.BDEScore
BDE Scoring class
Field Summary | |
protected int[] |
arityCache
|
protected int |
curNode
|
protected double[] |
lnFactorialCache
|
protected int |
nodeArity
|
protected int[] |
nodes
|
protected double |
result
|
protected int |
ri_minus_one
|
protected double |
ri_minus_one_fact
|
protected int |
tupleSize
|
Fields inherited from class edu.ksu.cis.bnj.bbn.learning.LearnerScore |
NO_CANDIDATES, owner, tally |
Constructor Summary | |
BDEScore()
|
|
BDEScore(Learner l)
Constructor for K2Score. |
Method Summary | |
double |
getScore(int curNode,
int candidate,
java.util.Set[] parentTable)
BDE scoring is: g(vi, parents(vi)) = \Pi_{j=1}^{qi} ((ri-1)! |
protected void |
iterateUniqueInstantiation(int depth,
Tally tally)
Recursively filter out the data according to the current node |
protected void |
precache()
|
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.LearnerScore |
getTallyer, initialize, setData, setOwner |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected double result
protected int ri_minus_one
protected double ri_minus_one_fact
protected int curNode
protected int nodeArity
protected int[] nodes
protected double[] lnFactorialCache
protected int[] arityCache
protected int tupleSize
Constructor Detail |
public BDEScore()
public BDEScore(Learner l)
l
- Method Detail |
protected void precache()
public double getScore(int curNode, int candidate, java.util.Set[] parentTable)
With:
vi is the node being queried
qi is the unique instantiation of vi's parents
ri is vi's arity
Nij is the total number of unique cases of one unique instantiation
Nijk is the total number of unique cases of one unique instantiation that
contains the value of r_ik.
Then, we do a logarithm out of g.
In short, UTSL or RTFP.
getScore
in class LearnerScore
curNode
- The index of the currently evaluated nodecandidate
- The index of the parent candidateparentTable
- The array of Sets of integers. Each integer in the set
is the index of currently assembled parent of each node.
edu.ksu.cis.bnj.bbn.learning.LearnerScore#score(java.lang.String, java.util.Set)
protected void iterateUniqueInstantiation(int depth, Tally tally)
depth
- tally
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |