edu.ksu.cis.bnj.bbn.prm
Class PRMk2

java.lang.Object
  extended byedu.ksu.cis.bnj.bbn.learning.Learner
      extended byedu.ksu.cis.bnj.bbn.prm.PRMk2
All Implemented Interfaces:
Optionable

public class PRMk2
extends Learner

Author:
Prashanth Boddhireddy (pbo8844@ksu.edu), Roby Joehanes

Field Summary
protected  BBNNode[] bbnNodes
           
static int defaultParentLimit
           
 java.util.LinkedList mAttributeNames
           
 java.util.LinkedList mAttributeOrderList
           
 BBNGraph mBBNGraph
           
protected  java.util.Hashtable mIndexTable
           
protected  Tally mJDBCTally
           
protected  int mParentLimit
           
 boolean orderStringProper
           
 
Fields inherited from class edu.ksu.cis.bnj.bbn.learning.Learner
calculateCPT, data, indexTable, learnerClassName, OPT_CALCULATE_RMSE, options
 
Fields inherited from interface edu.ksu.cis.kdd.util.gui.Optionable
OPT_OUTPUT_FILE
 
Constructor Summary
PRMk2(Database db, java.util.LinkedList attributeOrderList)
           
 
Method Summary
 void displayTable(java.util.LinkedList[] listArray)
           
protected  BBNGraph getBBNGraph()
           
 Data getData()
           
 BBNGraph getGraph()
          The learning algorithm is here
 OptionGUI getOptionsDialog()
           
 double getScore(int nodeIndex, int candidateParent, java.util.LinkedList parentTable)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.Learner
getCalculateRMSE, getCurrentOptions, getDefaultOptions, getName, 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

mJDBCTally

protected Tally mJDBCTally

mIndexTable

protected java.util.Hashtable mIndexTable

mParentLimit

protected int mParentLimit

bbnNodes

protected BBNNode[] bbnNodes

defaultParentLimit

public static int defaultParentLimit

mBBNGraph

public BBNGraph mBBNGraph

mAttributeOrderList

public java.util.LinkedList mAttributeOrderList

orderStringProper

public boolean orderStringProper

mAttributeNames

public java.util.LinkedList mAttributeNames
Constructor Detail

PRMk2

public PRMk2(Database db,
             java.util.LinkedList attributeOrderList)
Method Detail

displayTable

public void displayTable(java.util.LinkedList[] listArray)

getGraph

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

Specified by:
getGraph in class Learner
Returns:
BBNGraph

getBBNGraph

protected BBNGraph getBBNGraph()

getScore

public double getScore(int nodeIndex,
                       int candidateParent,
                       java.util.LinkedList parentTable)

getOptionsDialog

public OptionGUI getOptionsDialog()
Specified by:
getOptionsDialog in interface Optionable
Overrides:
getOptionsDialog in class Learner

getData

public Data getData()
Overrides:
getData in class Learner
Returns:
Table

main

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