edu.ksu.cis.bnj.bbn.learning.scorebased.wrappers.gawk
Class GAWK
java.lang.Object
edu.ksu.cis.bnj.bbn.learning.Learner
edu.ksu.cis.bnj.bbn.learning.ScoreBasedLearner
edu.ksu.cis.bnj.bbn.learning.scorebased.wrappers.gawk.GAWK
- All Implemented Interfaces:
- Optionable
- public class GAWK
- extends ScoreBasedLearner
- Author:
- Roby Joehanes
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.Learner |
getCalculateRMSE, getCurrentOptions, getData, getDefaultOptions, 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 |
defaultGenerations
public static final int defaultGenerations
- See Also:
- Constant Field Values
defaultPopulationSize
public static final int defaultPopulationSize
- See Also:
- Constant Field Values
pop
protected Population pop
populationSize
protected int populationSize
generations
protected int generations
fitnessFunction
protected GAWKFitness fitnessFunction
attributeSize
protected int attributeSize
k2
public K2 k2
GAWK
public GAWK()
GAWK
public GAWK(Data t)
- Parameters:
t
-
getGraph
public BBNGraph getGraph()
- Description copied from class:
Learner
- The learning algorithm is here
- Specified by:
getGraph
in class Learner
- Returns:
- BBNGraph
- See Also:
Learner.getGraph()
getGraph
protected BBNGraph getGraph(edu.ksu.cis.bnj.bbn.learning.scorebased.wrappers.gawk.GAWKChrom gc)
getFitnessFunction
public GAWKFitness getFitnessFunction()
- Returns:
- the fitness function
getK2Score
public double getK2Score()
setFitnessFunction
public void setFitnessFunction(GAWKFitness fitness)
- Parameters:
fitness
- The fitness function
getName
public java.lang.String getName()
- Overrides:
getName
in class Learner
- See Also:
Learner.getName()
getPopulationSize
public int getPopulationSize()
- Returns:
- int
setPopulationSize
public void setPopulationSize(int populationSize)
- Sets the populationSize.
- Parameters:
populationSize
- The populationSize to set
getGenerations
public int getGenerations()
- Returns:
- int
setGenerations
public void setGenerations(int generations)
- Sets the generations.
- Parameters:
generations
- The generations to set
getOptionsDialog
public OptionGUI getOptionsDialog()
- Specified by:
getOptionsDialog
in interface Optionable
- Overrides:
getOptionsDialog
in class Learner
main
public static void main(java.lang.String[] args)