edu.ksu.cis.bnj.bbn.learning.scorebased.gradient
Class HillClimbingDPSL
java.lang.Object
edu.ksu.cis.bnj.bbn.learning.Learner
edu.ksu.cis.bnj.bbn.learning.ScoreBasedLearner
edu.ksu.cis.bnj.bbn.learning.scorebased.gradient.HillClimbingSL
edu.ksu.cis.bnj.bbn.learning.scorebased.gradient.HillClimbingDPSL
- All Implemented Interfaces:
- Optionable
- public class HillClimbingDPSL
- extends HillClimbingSL
- Author:
- Haipeng Guo
| 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 |
| 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.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 |
seedGamma
protected Gamma seedGamma
HillClimbingDPSL
public HillClimbingDPSL()
HillClimbingDPSL
public HillClimbingDPSL(Data data)
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)