java.lang.Cloneable
, ClassificationMethod
, ClassificationStatisticsPresenter
public class WeightedVotingMethod extends EnsembleClassificationMethod implements ClassificationStatisticsPresenter
Modifier and Type | Field | Description |
---|---|---|
static int |
OFF |
|
static int |
UNKNOWN_VALUE |
|
static int |
WVINTERVALS |
AverageAggregation, MajorityVotingAggregation, MedianAggregation
Constructor | Description |
---|---|
WeightedVotingMethod(SimpleClassifierWrapper[] classifiers,
double[] weights,
SimpleField[] decisionClassesList) |
Constructor for WeightedVotingMethod
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.String |
classificationStatisticsToString() |
|
ClassificationResult |
classify(Example example) |
Performs classification of given example with Weighted Voting Method
|
java.lang.Object |
clone() |
Clones this object
|
ClassificationStatisticsCollector |
getClassificationStatisticsCollector() |
|
int |
getIntervalsSetting() |
|
void |
setIntervalsSetting(int intervalsSetting) |
public static final int OFF
public static final int WVINTERVALS
public static final int UNKNOWN_VALUE
public WeightedVotingMethod(SimpleClassifierWrapper[] classifiers, double[] weights, SimpleField[] decisionClassesList) throws java.lang.IllegalArgumentException
classifiers
- Array of classifiers. Element count must be equal to this in weights array.weights
- Array of classifiers weights. Element count must be equal to this in classifiers array.decisionClassesList
- list of decision classesjava.lang.IllegalArgumentException
- if the count of classifiers is different than the count of weightspublic ClassificationResult classify(Example example)
classify
in interface ClassificationMethod
example
- Example to be classifiedpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in interface ClassificationMethod
clone
in class EnsembleClassificationMethod
java.lang.CloneNotSupportedException
public java.lang.String classificationStatisticsToString()
classificationStatisticsToString
in interface ClassificationStatisticsPresenter
public ClassificationStatisticsCollector getClassificationStatisticsCollector()
getClassificationStatisticsCollector
in interface ClassificationStatisticsPresenter
public void setIntervalsSetting(int intervalsSetting)
public int getIntervalsSetting()