edu.ksu.cis.bnj.bbn.learning
Class LearnerScore

java.lang.Object
  extended byedu.ksu.cis.bnj.bbn.learning.LearnerScore
Direct Known Subclasses:
BDEScore, SparseScore, StructureScore

public abstract class LearnerScore
extends java.lang.Object

Abstract class for scores in score-based learning.

Author:
Roby Joehanes

Field Summary
static int NO_CANDIDATES
           
protected  Learner owner
           
protected  Tally tally
           
 
Constructor Summary
LearnerScore()
           
LearnerScore(Learner l)
          Constructor for LearnerScore.
 
Method Summary
abstract  double getScore(int curNode, int candidate, java.util.Set[] parentTable)
          Get the score
 Tally getTallyer()
           
 void initialize()
           
 void setData(Table t)
           
 void setOwner(Learner l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

protected Learner owner

tally

protected Tally tally

NO_CANDIDATES

public static final int NO_CANDIDATES
See Also:
Constant Field Values
Constructor Detail

LearnerScore

public LearnerScore()

LearnerScore

public LearnerScore(Learner l)
Constructor for LearnerScore.

Method Detail

getScore

public abstract double getScore(int curNode,
                                int candidate,
                                java.util.Set[] parentTable)
Get the score

Parameters:
curNode - The index of the currently evaluated node
candidate - The index of the parent candidate
parentTable - The array of Sets of integers. Each integer in the set is the index of currently assembled parent of each node.
Returns:
double the score

initialize

public void initialize()

setData

public void setData(Table t)

setOwner

public void setOwner(Learner l)

getTallyer

public Tally getTallyer()