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

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.HillClimbingSL
              extended byedu.ksu.cis.bnj.bbn.learning.scorebased.gradient.HillClimbingDPSL
All Implemented Interfaces:
Optionable

public class HillClimbingDPSL
extends HillClimbingSL

Author:
Haipeng Guo

Field Summary
protected  Gamma seedGamma
           
 
Fields inherited from class edu.ksu.cis.bnj.bbn.learning.scorebased.gradient.HillClimbingSL
ADDED, allGraphs, allGraphScores, bbnGraph, containsCycle, curErrors, CYCLE, errors, errorType, inputFile, maxParents, maxScore, minNumChanges, NA, numOfChanges, numOfNodes, parentTable, path, previousScore, recentChange, REMOVED, REVERSED, tempScore, 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
HillClimbingDPSL()
           
HillClimbingDPSL(Data data)
           
 
Method Summary
 double[] generateDirichletDistribution(int n, double[] alphas, double beta)
          This method generate distribution functions with Dirichlet priors (alphas) *
 BBNGraph getGraph()
          The learning algorithm is here
static void main(java.lang.String[] args)
           
 void randomReweighting(double beta)
          random Rewighting
 
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.scorebased.gradient.HillClimbingSL
addParentsToGraph, getNetworkScore, initializeGraph, initializeNodeParents, initializeNodes, initializePossibleParents, learnGraph, printErrors, resetCPT, setGoldGraph, setResultsFile
 
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

seedGamma

protected Gamma seedGamma
Constructor Detail

HillClimbingDPSL

public HillClimbingDPSL()

HillClimbingDPSL

public HillClimbingDPSL(Data data)
Method Detail

generateDirichletDistribution

public double[] generateDirichletDistribution(int n,
                                              double[] alphas,
                                              double beta)
This method generate distribution functions with Dirichlet priors (alphas) *

Parameters:
n - :
alphas - : a vector of double numbers
Returns:

randomReweighting

public void randomReweighting(double beta)
random Rewighting


getGraph

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

Overrides:
getGraph in class HillClimbingSL

main

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