|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectclassification.MajorityVoteClassifier
public class MajorityVoteClassifier
Creates an ensemble by holding a majority vote among the included prediction sets.
| Constructor Summary | |
|---|---|
MajorityVoteClassifier(double accuracyCutoff,
double similarityCutoff)
Creates a new classifier that generates an ensemble through a majority vote of the predictions it is given. |
|
| Method Summary | |
|---|---|
Ensemble |
generateEnsemble(java.util.List<PredictionSet> predSetList,
DataSet data)
Generates an ensemble for the given data using the provided predictions. |
double |
getAccuracyCutoff()
Retrieves the percentage accuracy below which a classifier will not accept predictions. |
java.lang.String |
getAttribute()
Retrieves the name of the attribute that the classifier considers. |
java.lang.String |
getName()
Retrieves the name of a classifier. |
double |
getSimilarityCutoff()
Retrieves the percentage similarity above which a classifier will not accept predictions. |
java.lang.Boolean |
isChanged()
Determines if anything about the classifier has been changed since the method was last called. |
void |
setAccuracyCutoff(double accuracyCutoff)
Sets the percentage accuracy below which a classifier will not accept predictions. |
void |
setAttribute(java.lang.String attribute)
Sets the attribute that the classifier will consider. |
void |
setSimilarityCutoff(double similarityCutoff)
Sets the percentage similarity above which a classifier will not accept predictions. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MajorityVoteClassifier(double accuracyCutoff,
double similarityCutoff)
accuracyCutoff - The minimum percentage accuracy a set of predictions
must have to be included in the votingsimilarityCutoff - The percentage similarity above which a prediction
set will either replace another, less accurate included set or not be included| Method Detail |
|---|
public java.lang.String getName()
MetaClassifier
getName in interface MetaClassifier
public Ensemble generateEnsemble(java.util.List<PredictionSet> predSetList,
DataSet data)
MetaClassifier
generateEnsemble in interface MetaClassifierpredSetList - A list of prediction sets to consider in making the ensembledata - The data set to judge the predictions against
public double getAccuracyCutoff()
MetaClassifier
getAccuracyCutoff in interface MetaClassifierpublic void setAccuracyCutoff(double accuracyCutoff)
MetaClassifier
setAccuracyCutoff in interface MetaClassifieraccuracyCutoff - The desired cutoff, in the interval [0,100]public double getSimilarityCutoff()
MetaClassifier
getSimilarityCutoff in interface MetaClassifierpublic void setSimilarityCutoff(double similarityCutoff)
MetaClassifier
setSimilarityCutoff in interface MetaClassifiersimilarityCutoff - The desired cutoff, in the interval [0,100]public java.lang.String getAttribute()
MetaClassifier
getAttribute in interface MetaClassifierpublic void setAttribute(java.lang.String attribute)
MetaClassifier
setAttribute in interface MetaClassifierattribute - The name of an attribute for some data setpublic java.lang.Boolean isChanged()
MetaClassifier
isChanged in interface MetaClassifier
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||