edu.ksu.cis.bnj.bbn.learning
Class LearnerScore
java.lang.Object
edu.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
owner
protected Learner owner
tally
protected Tally tally
NO_CANDIDATES
public static final int NO_CANDIDATES
- See Also:
- Constant Field Values
LearnerScore
public LearnerScore()
LearnerScore
public LearnerScore(Learner l)
- Constructor for LearnerScore.
getScore
public abstract double getScore(int curNode,
int candidate,
java.util.Set[] parentTable)
- Get the score
- Parameters:
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.
- Returns:
- double the score
initialize
public void initialize()
setData
public void setData(Table t)
setOwner
public void setOwner(Learner l)
getTallyer
public Tally getTallyer()