|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.flow.sink.WekaClassifierErrors.DataGenerator
public static class WekaClassifierErrors.DataGenerator
Helper class for generating visualization data.
| Field Summary | |
|---|---|
protected AbstractErrorScaler |
m_ErrorScaler
the scaler scheme to use. |
protected weka.classifiers.Evaluation |
m_Evaluation
the underlying Evaluation object. |
protected weka.core.Instances |
m_PlotInstances
the underlying data. |
protected weka.core.FastVector |
m_PlotShapes
for storing the plot shapes. |
protected weka.core.FastVector |
m_PlotSizes
for storing the plot sizes. |
protected boolean |
m_Processed
whether the data has already been processed. |
| Constructor Summary | |
|---|---|
WekaClassifierErrors.DataGenerator(weka.classifiers.Evaluation eval,
AbstractErrorScaler scaler)
Initializes the generator. |
|
| Method Summary | |
|---|---|
protected void |
createDataset(weka.classifiers.Evaluation eval)
Generates a dataset, containing the predicted vs actual values. |
AbstractErrorScaler |
getErrorScaler()
Returns the scaling scheme. |
weka.classifiers.Evaluation |
getEvaluation()
Returns the underlying Evaluation object. |
weka.gui.visualize.PlotData2D |
getPlotData()
Assembles and returns the plot. |
weka.core.Instances |
getPlotInstances()
Returns the generated dataset that is plotted. |
protected void |
process()
Processes the data if necessary. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected weka.classifiers.Evaluation m_Evaluation
protected weka.core.Instances m_PlotInstances
protected weka.core.FastVector m_PlotShapes
protected weka.core.FastVector m_PlotSizes
protected AbstractErrorScaler m_ErrorScaler
protected boolean m_Processed
| Constructor Detail |
|---|
public WekaClassifierErrors.DataGenerator(weka.classifiers.Evaluation eval,
AbstractErrorScaler scaler)
eval - the Evaluation object to usescaler - the scaler scheme to use for the errors| Method Detail |
|---|
protected void process()
public weka.classifiers.Evaluation getEvaluation()
public AbstractErrorScaler getErrorScaler()
public weka.core.Instances getPlotInstances()
protected void createDataset(weka.classifiers.Evaluation eval)
eval - for obtaining the dataset information and predictions
public weka.gui.visualize.PlotData2D getPlotData()
throws Exception
Exception - if plot generation fails
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||