|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectclassification.Ensemble
public class Ensemble
This class represents multiple prediction sets that have been combined into an ensemble.
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 |
---|
public Ensemble(java.util.List<PredictionSet> predSetList, double percentCorrect, int total, MetaClassifier metaClass, PredictionSet combinedPred, DataSet dataSet)
predSetList
- The list of prediction sets that compose the ensemblepercentCorrect
- The percentage of predictions the ensemble made correctly [0.0, 100]total
- The total number of data points used in testing the ensemblemetaClass
- The meta-classifier that generated the ensemblecombinedPred
- The combined prediction set that represents the ensembledataSet
- The data set the predictions and ensemble are forpublic 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)
pslString
- A string listing the prediction sets that compose the ensemblepercentCorrect
- The percentage of predictions the ensemble made correctly [0.0, 100]total
- The total number of data points used in testing the ensemblemcName
- The name of the meta-classifier that generated the ensembleacc
- The accuracy cutoff of the meta-classifier that generated the ensemblesim
- The similarity cutoff of the meta-classifier that generated the ensemblecombinedPredFileName
- The filename of the XML where the ensemble's predictions are saveddataName
- The name of the data set the ensemble is forMethod Detail |
---|
public PredictionSet getCombinedPred()
public int getNumCorrect()
public java.lang.String getPredSetListString()
public int getTotal()
public java.lang.String getDataSet()
public double getPercentCorrect()
public double getAccuracyCutoff()
public double getSimilarityCutoff()
public java.lang.String getPredFilename()
public java.lang.String getMetaClassName()
public void setCombinedPred(PredictionSet combinedPred)
combinedPred
- A combined prediction setpublic void setPredFilename(java.lang.String predFilename)
predFilename
- A file name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |