weka.classifiers.trees.j48Consolidated
public class DistributionConsolidated extends weka.classifiers.trees.j48.Distribution
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID
for serialization
|
Constructor and Description |
---|
DistributionConsolidated(weka.core.Instances instances)
Constructor calling the constructor of the superclass
(No necessary if the above methods are moved to the official class 'Distribution')
|
DistributionConsolidated(weka.core.Instances[] samplesVector)
Creates a distribution with only one bag according
to the vector of samples by calculating the average of the distributions.
|
DistributionConsolidated(weka.core.Instances[] samplesVector,
weka.classifiers.trees.j48.ClassifierSplitModel modelToUse)
Creates a distribution by calculating the average of the distributions according
to each sample and given split model.
|
DistributionConsolidated(weka.core.Instances instances,
weka.classifiers.trees.j48.ClassifierSplitModel modelToUse)
Constructor calling the constructor of the superclass
(No necessary if the above methods are moved to the official class 'Distribution')
|
Modifier and Type | Method and Description |
---|---|
private void |
add(DistributionConsolidated distribution)
Adds the given distribution to this one.
|
private void |
calculateMeanDistribution(DistributionConsolidated[] distributionVector)
Calculates the distribution by calculating the average of the distributions.
|
private double[] |
getPerClassPerBag(int bagIndex)
Gets the weights of instances per class related to given bag.
|
actualNumBags, actualNumClasses, actualNumClasses, add, add, addInstWithUnknown, addRange, addWeights, check, clone, del, delRange, dumpDistribution, getRevision, initialize, laplaceProb, laplaceProb, matrix, maxBag, maxClass, maxClass, numBags, numClasses, numCorrect, numCorrect, numIncorrect, numIncorrect, perBag, perClass, perClassPerBag, prob, prob, shift, shiftRange, sub, subtract, total
private static final long serialVersionUID
public DistributionConsolidated(weka.core.Instances[] samplesVector) throws java.lang.Exception
samplesVector
- the vector of samples used for consolidationjava.lang.Exception
public DistributionConsolidated(weka.core.Instances[] samplesVector, weka.classifiers.trees.j48.ClassifierSplitModel modelToUse) throws java.lang.Exception
samplesVector
- the vector of samples used for consolidationmodelToUse
- the split model to be used to split each samplejava.lang.Exception
public DistributionConsolidated(weka.core.Instances instances) throws java.lang.Exception
instances
- instances to be taken in accountjava.lang.Exception
public DistributionConsolidated(weka.core.Instances instances, weka.classifiers.trees.j48.ClassifierSplitModel modelToUse) throws java.lang.Exception
instances
- instances to be taken in accountmodelToUse
- the split model to be used to split each samplejava.lang.Exception
private void calculateMeanDistribution(DistributionConsolidated[] distributionVector)
distributionVector
- vector storing the distributions according to a set of samplesprivate final void add(DistributionConsolidated distribution)
distribution
- distribution to be addedprivate final double[] getPerClassPerBag(int bagIndex)
bagIndex
- index of the bag