classification
Class Ensemble

java.lang.Object
  extended by classification.Ensemble
All Implemented Interfaces:
java.io.Serializable

public class Ensemble
extends java.lang.Object
implements java.io.Serializable

This class represents multiple prediction sets that have been combined into an ensemble.

See Also:
Serialized Form

Constructor Summary
Ensemble(java.util.List<PredictionSet> predSetList, double percentCorrect, int total, MetaClassifier metaClass, PredictionSet combinedPred, DataSet dataSet)
          Creates a new ensemble from a list of prediction sets.
Ensemble(java.lang.String pslString, double percentCorrect, int total, java.lang.String mcName, double acc, double sim, java.lang.String combinedPredFileName, java.lang.String dataName)
          Creates a new ensemble from information about a previously generated ensemble.
 
Method Summary
 double getAccuracyCutoff()
          The accuracy cutoff of the meta-classifier that generated the ensemble.
 PredictionSet getCombinedPred()
          Retrieves the combined prediction set that represents the ensemble.
 java.lang.String getDataSet()
          The data set the ensemble is based on.
 java.lang.String getMetaClassName()
          The name of the meta-classifier that generated the ensemble.
 int getNumCorrect()
          Retrieves the number of values that the ensemble predicted correctly for its test data.
 double getPercentCorrect()
          The percentage of predictions the ensemble made correctly during testing.
 java.lang.String getPredFilename()
          The name of the XML file where the ensemble's predictions are saved.
 java.lang.String getPredSetListString()
          Retrieves a string representation of the ensemble's prediction sets suitable for display in an xhtml data table.
 double getSimilarityCutoff()
          The similarity cutoff of the meta-classifier that generated the ensemble.
 int getTotal()
          The total number of predictions made when testing the ensemble.
 void setCombinedPred(PredictionSet combinedPred)
          Sets the prediction set that represents the ensemble.
 void setPredFilename(java.lang.String predFilename)
          Sets the name of the XML file where the ensemble's predictions are saved.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ensemble

public Ensemble(java.util.List<PredictionSet> predSetList,
                double percentCorrect,
                int total,
                MetaClassifier metaClass,
                PredictionSet combinedPred,
                DataSet dataSet)
Creates a new ensemble from a list of prediction sets.

Parameters:
predSetList - The list of prediction sets that compose the ensemble
percentCorrect - The percentage of predictions the ensemble made correctly [0.0, 100]
total - The total number of data points used in testing the ensemble
metaClass - The meta-classifier that generated the ensemble
combinedPred - The combined prediction set that represents the ensemble
dataSet - The data set the predictions and ensemble are for

Ensemble

public Ensemble(java.lang.String pslString,
                double percentCorrect,
                int total,
                java.lang.String mcName,
                double acc,
                double sim,
                java.lang.String combinedPredFileName,
                java.lang.String dataName)
Creates a new ensemble from information about a previously generated ensemble.

Parameters:
pslString - A string listing the prediction sets that compose the ensemble
percentCorrect - The percentage of predictions the ensemble made correctly [0.0, 100]
total - The total number of data points used in testing the ensemble
mcName - The name of the meta-classifier that generated the ensemble
acc - The accuracy cutoff of the meta-classifier that generated the ensemble
sim - The similarity cutoff of the meta-classifier that generated the ensemble
combinedPredFileName - The filename of the XML where the ensemble's predictions are saved
dataName - The name of the data set the ensemble is for
Method Detail

getCombinedPred

public PredictionSet getCombinedPred()
Retrieves the combined prediction set that represents the ensemble.

Returns:
A prediction set representing the ensemble

getNumCorrect

public int getNumCorrect()
Retrieves the number of values that the ensemble predicted correctly for its test data.

Returns:
The number of correct predictions

getPredSetListString

public java.lang.String getPredSetListString()
Retrieves a string representation of the ensemble's prediction sets suitable for display in an xhtml data table.

Returns:
"[set name] by [user who submitted set]
" for each prediction set

getTotal

public int getTotal()
The total number of predictions made when testing the ensemble.

Returns:
The total number of predictions

getDataSet

public java.lang.String getDataSet()
The data set the ensemble is based on.

Returns:
The ensemble's data set

getPercentCorrect

public double getPercentCorrect()
The percentage of predictions the ensemble made correctly during testing.

Returns:
The percentage of correct predictions [0.0, 100]

getAccuracyCutoff

public double getAccuracyCutoff()
The accuracy cutoff of the meta-classifier that generated the ensemble.

Returns:
Accuracy cutoff as a percentage

getSimilarityCutoff

public double getSimilarityCutoff()
The similarity cutoff of the meta-classifier that generated the ensemble.

Returns:
Similarity cutoff as a percentage

getPredFilename

public java.lang.String getPredFilename()
The name of the XML file where the ensemble's predictions are saved.

Returns:
The name of an prediction set XML file

getMetaClassName

public java.lang.String getMetaClassName()
The name of the meta-classifier that generated the ensemble.

Returns:
The meta-classifier's name.

setCombinedPred

public void setCombinedPred(PredictionSet combinedPred)
Sets the prediction set that represents the ensemble.

Parameters:
combinedPred - A combined prediction set

setPredFilename

public void setPredFilename(java.lang.String predFilename)
Sets the name of the XML file where the ensemble's predictions are saved.

Parameters:
predFilename - A file name