|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.experiment.NoiseGrapher
Class for producing performance graphs for any metric from learning curve results. Currently supports gnuplot format with various types of error bars
Field Summary | |
protected java.lang.String |
arffFileName
Name of original file of experimental result data in arff format |
static short |
CONF_INF
errorBar value for error bars using 95% confidence intervals |
boolean |
confIntErrorBars
Set if desire error bars based on 95% confidence intervals |
protected Instances |
data
Experimental result data in arff format |
java.lang.String |
dataset
The name of the dataset to plot performance for |
protected java.lang.String[] |
datasets
Names of datasets in data |
short |
errorBars
Set if desire error bars of particular type |
java.lang.String |
metric
The name of the performance metric to plot |
static short |
MIN_MAX
errorBar value for error bars using min and max values |
static short |
NONE
errorBar value for no error bars |
protected int[] |
points
Ordered array of points on learning in number of training examples |
protected java.util.HashMap |
schemeMap
Map from scheme + options name to result data in the form of an array of Stats's, one for each learning curve point in points |
static short |
STD_DEV
errorBar value for error bars using standard deviations |
Constructor Summary | |
NoiseGrapher(java.lang.String arffFileName,
short errorBars)
Create an initial Grapher and load in data, names of datasets, and set of points on learning curve. |
Method Summary | |
void |
gnuplot()
Generate gnuplot files for plotting a learning curve for the current dataset and metric. |
void |
gnuplotAllDatasets()
Produce a gnuplot for each dataset in the result file |
static void |
main(java.lang.String[] args)
Create gnuplot graphs of learning curves. |
protected void |
processData()
Read in data for the current values of dataset and metric by indexing for each scheme+options name an array of Stats objects for each point on the learning curve |
static java.lang.String |
removeFileExtension(java.lang.String fileName)
Return the name of a file with the extension removed |
protected void |
setData()
Load data for graph in from the given Experiment result file in arff format |
protected void |
setDatasets()
Set array of points on learning curve from Key_Dataset values in data |
protected void |
setPoints()
Set array of points on learning curve from Key_Noise_levels values in data |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Instances data
protected java.lang.String[] datasets
protected java.util.HashMap schemeMap
protected int[] points
protected java.lang.String arffFileName
public java.lang.String metric
public short errorBars
public static short NONE
public static short STD_DEV
public static short CONF_INF
public static short MIN_MAX
public boolean confIntErrorBars
public java.lang.String dataset
Constructor Detail |
public NoiseGrapher(java.lang.String arffFileName, short errorBars) throws java.lang.Exception
Method Detail |
protected void setData() throws java.lang.Exception
java.lang.Exception
protected void setPoints() throws java.lang.Exception
java.lang.Exception
protected void setDatasets() throws java.lang.Exception
java.lang.Exception
protected void processData() throws java.lang.Exception
java.lang.Exception
public void gnuplot() throws java.lang.Exception
java.lang.Exception
public static java.lang.String removeFileExtension(java.lang.String fileName)
public void gnuplotAllDatasets() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |