edu.ksu.cis.bnj.bbn.learning.scorebased.wrappers.gawk
Class ExhaustiveEval

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.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

Field Summary
protected  InferenceResult actualResult
           
protected  int attributeSize
           
protected  java.util.LinkedList permutations
           
protected  Tally tally
           
 
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
ExhaustiveEval(Table t)
           
 
Method Summary
 int factorial_aux(int n, int k)
          ### LIFT THIS WHERE IT BELONGS - WHH
 int factorial(int n)
           
 double getFitness(Chromosome c)
           
 BBNGraph getGraph()
          The learning algorithm is here
protected  BBNGraph getGraph(edu.ksu.cis.bnj.bbn.learning.scorebased.wrappers.gawk.GAWKChrom gc)
          overloaded method that takes a GAWKChrom
 java.lang.String getName()
           
 void initialize()
          This method will be invoked prior to getGraph.
static void main(java.lang.String[] args)
           
 void processParameters(java.lang.String[] args)
           
static int[] removeFromList(int[] l, int i, int n)
           
 
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, 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
 

Field Detail

tally

protected Tally tally

actualResult

protected InferenceResult actualResult

attributeSize

protected int attributeSize

permutations

protected java.util.LinkedList permutations
Constructor Detail

ExhaustiveEval

public ExhaustiveEval(Table t)
Parameters:
t -
Method Detail

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)