edu.ksu.cis.bnj.bbn.learning.scorebased.wrappers.gawk
Class ExhaustiveEval
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.ExhaustiveEval
- All Implemented Interfaces:
- Fitness, Optionable
- public class ExhaustiveEval
- extends ScoreBasedLearner
- implements Fitness
- Author:
- William H. Hsu
Last updated Tue 29 Apr 2003
Methods inherited from class edu.ksu.cis.bnj.bbn.learning.Learner |
getCalculateRMSE, getCurrentOptions, getData, getDefaultOptions, getOptionsDialog, getOutputFile, isCalculateCPT, load, populateNodes, setCalculateCPT, setCalculateRMSE, setData, setOption, setOptions, setOutputFile |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
tally
protected Tally tally
actualResult
protected InferenceResult actualResult
attributeSize
protected int attributeSize
permutations
protected java.util.LinkedList permutations
ExhaustiveEval
public ExhaustiveEval(Table t)
- Parameters:
t
-
initialize
public void initialize()
- Description copied from class:
Learner
- This method will be invoked prior to getGraph. The purpose is
to let the learner object to purge caches and stuff.
- Overrides:
initialize
in class Learner
- See Also:
Learner.initialize()
factorial_aux
public int factorial_aux(int n,
int k)
- ### LIFT THIS WHERE IT BELONGS - WHH
factorial
public int factorial(int n)
removeFromList
public static int[] removeFromList(int[] l,
int i,
int n)
getGraph
public BBNGraph getGraph()
- Description copied from class:
Learner
- The learning algorithm is here
- Specified by:
getGraph
in class Learner
- Returns:
- BBNGraph
- See Also:
### Gets BEST graph - WHH
getGraph
protected BBNGraph getGraph(edu.ksu.cis.bnj.bbn.learning.scorebased.wrappers.gawk.GAWKChrom gc)
- overloaded method that takes a GAWKChrom
getFitness
public double getFitness(Chromosome c)
- Specified by:
getFitness
in interface Fitness
- See Also:
Fitness.getFitness(edu.ksu.cis.kdd.ga.Chromosome)
processParameters
public void processParameters(java.lang.String[] args)
- Overrides:
processParameters
in class Learner
- See Also:
Learner.processParameters(java.lang.String[])
getName
public java.lang.String getName()
- Overrides:
getName
in class Learner
- See Also:
Learner.getName()
main
public static void main(java.lang.String[] args)