edu.ksu.cis.bnj.bbn.learning.analysis
Class Robustness

java.lang.Object
  extended byedu.ksu.cis.bnj.bbn.analysis.Analyzer
      extended byedu.ksu.cis.bnj.bbn.learning.analysis.Robustness

public class Robustness
extends Analyzer

Robustness analysis for structure learner.

Author:
Roby Joehanes

Field Summary
protected  Learner base
           
protected  int bootstrapSamples
           
protected  java.util.LinkedHashMap result
           
protected  int subsample
           
protected  Data tuples
           
 
Constructor Summary
Robustness(Learner b)
           
Robustness(Learner b, int it, int s)
           
 
Method Summary
 void dump(java.io.OutputStream out)
           
 Learner getBaseLearner()
           
 int getBootstrapSamples()
           
 java.lang.Object getResult()
          Get the robustness result.
 int getSubSample()
           
static void main(java.lang.String[] args)
           
 void setBaseLearner(Learner base)
          Sets the base learner.
 void setBootstrapSamples(int iteration)
          Sets the iteration.
 void setSubSample(int subsample)
          Sets the subsample.
 
Methods inherited from class edu.ksu.cis.bnj.bbn.analysis.Analyzer
dump, dump
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

base

protected Learner base

tuples

protected Data tuples

bootstrapSamples

protected int bootstrapSamples

subsample

protected int subsample

result

protected java.util.LinkedHashMap result
Constructor Detail

Robustness

public Robustness(Learner b)

Robustness

public Robustness(Learner b,
                  int it,
                  int s)
Method Detail

getResult

public java.lang.Object getResult()
Get the robustness result. The return type should be HashMap but let's generalize for the moment since testing framework is not yet available.

Returns:
Object

dump

public void dump(java.io.OutputStream out)
Specified by:
dump in class Analyzer

getBaseLearner

public Learner getBaseLearner()
Returns:
Learning

setBaseLearner

public void setBaseLearner(Learner base)
Sets the base learner.

Parameters:
base - The base to set

getBootstrapSamples

public int getBootstrapSamples()
Returns:
int

getSubSample

public int getSubSample()
Returns:
int

setBootstrapSamples

public void setBootstrapSamples(int iteration)
Sets the iteration.

Parameters:
iteration - The iteration to set

setSubSample

public void setSubSample(int subsample)
Sets the subsample.

Parameters:
subsample - The subsample to set

main

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