edu.ksu.cis.bnj.bbn.learning.scorebased.gradient
Class GreedySL

java.lang.Object
  extended byedu.ksu.cis.bnj.bbn.learning.Learner
      extended byedu.ksu.cis.bnj.bbn.learning.ScoreBasedLearner
          extended byedu.ksu.cis.bnj.bbn.learning.scorebased.gradient.GreedySL
All Implemented Interfaces:
Optionable

public class GreedySL
extends ScoreBasedLearner

Author:
Prashanth Boddhireddy

Field Summary
static int ADDED
           
protected  BBNGraph bbnGraph
           
 boolean containsCycle
           
static boolean CYCLE
           
static int MAXNUMCHANGES
           
protected  double maxScore
           
static int NA
           
protected  int numOfChanges
           
protected  int numOfNodes
           
protected  java.util.Set[] parentTable
           
protected  boolean[][] path
           
protected  double previousScore
           
protected  int recentChange
           
static int REMOVED
           
static int REVERSED
           
protected  double tempScore
           
protected  int totalNumOfChanges
           
 
Fields inherited from class edu.ksu.cis.bnj.bbn.learning.ScoreBasedLearner
candidateScorer, defaultParentLimit, parentLimit, structureScorer
 
Fields inherited from class edu.ksu.cis.bnj.bbn.learning.Learner
bbnNodes, calculateCPT, data, indexTable, learnerClassName, OPT_CALCULATE_RMSE, options
 
Fields inherited from interface edu.ksu.cis.kdd.util.gui.Optionable
OPT_OUTPUT_FILE
 
Constructor Summary
GreedySL()
           
GreedySL(Data data)
           
 
Method Summary
 BBNGraph getGraph()
          The learning algorithm is here
protected  void learnGraph()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.ScoreBasedLearner
computeCPT, getParentLimit, iterateUniqueInstantiation, setCandidateScorer, setParentLimit, setStructureScorer, setTable
 
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.Learner
getCalculateRMSE, getCurrentOptions, getData, getDefaultOptions, getName, getOptionsDialog, getOutputFile, initialize, isCalculateCPT, load, populateNodes, processParameters, setCalculateCPT, setCalculateRMSE, setData, setOption, setOptions, setOutputFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

bbnGraph

protected BBNGraph bbnGraph

parentTable

protected java.util.Set[] parentTable

path

protected boolean[][] path

numOfNodes

protected int numOfNodes

numOfChanges

protected int numOfChanges

totalNumOfChanges

protected int totalNumOfChanges

tempScore

protected double tempScore

previousScore

protected double previousScore

maxScore

protected double maxScore

recentChange

protected int recentChange

CYCLE

public static final boolean CYCLE
See Also:
Constant Field Values

containsCycle

public boolean containsCycle

MAXNUMCHANGES

public static final int MAXNUMCHANGES
See Also:
Constant Field Values

REVERSED

public static final int REVERSED
See Also:
Constant Field Values

REMOVED

public static final int REMOVED
See Also:
Constant Field Values

ADDED

public static final int ADDED
See Also:
Constant Field Values

NA

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

GreedySL

public GreedySL()

GreedySL

public GreedySL(Data data)
Method Detail

getGraph

public BBNGraph getGraph()
Description copied from class: Learner
The learning algorithm is here

Specified by:
getGraph in class Learner
Returns:
BBNGraph

learnGraph

protected void learnGraph()

main

public static void main(java.lang.String[] args)