public class IademGreenwaldKhannaNumericAttributeClassObserver extends GreenwaldKhannaNumericAttributeClassObserver implements IademNumericAttributeObserver
attValDistPerClass, numTuplesOption
config
Constructor and Description |
---|
IademGreenwaldKhannaNumericAttributeClassObserver() |
IademGreenwaldKhannaNumericAttributeClassObserver(int maxTuples) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(double attValue,
int classValue,
double weight) |
void |
computeClassDist(double[][][] cutClassDist) |
void |
computeClassDistProbabilities(double[][][] cut_value_classDist_lower,
double[][][] cut_value_classDist_upper,
double[][] counts_cut_value,
boolean withIntervalEstimates) |
double[] |
computeConditionalProb(ArrayList<Double> cortes,
double valor) |
ArrayList<Double[]> |
computeConditionalProbPerBin(ArrayList<Double> cuts) |
ArrayList<Double> |
cutPointSuggestion(int numCortes) |
long[] |
getClassDist() |
IademNumericAttributeObserver |
getCopy() |
double |
getCut(int cutIndex) |
long[] |
getLeftClassDist(double cut) |
long |
getMaxOfValues() |
long |
getNumberOfCutPoints() |
long |
getValueCount() |
void |
observeAttributeClass(double attVal,
int classVal,
double weight)
Updates statistics of this observer given an attribute value, a class
and the weight of the instance observed
|
double |
probabilityOfAttributeValueGivenClass(double attVal,
int classVal)
Gets the probability for an attribute value given a class
|
void |
reset() |
void |
setMaxBins(int numTuples) |
protected long |
sum(long[] arr) |
getBestEvaluatedSplitSuggestion, getClassDistsResultingFromBinarySplit, getDescription, observeAttributeTarget, prepareForUseImpl
copy, getCLICreationString, getOptions, getPreparedClassOption, getPurposeString, prepareClassOptions, prepareForUse, prepareForUse
copy, measureByteSize, measureByteSize, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBestEvaluatedSplitSuggestion, observeAttributeTarget
copy, getCLICreationString, getOptions, getPurposeString, prepareForUse, prepareForUse
getDescription, measureByteSize
public IademGreenwaldKhannaNumericAttributeClassObserver()
public IademGreenwaldKhannaNumericAttributeClassObserver(int maxTuples)
public void observeAttributeClass(double attVal, int classVal, double weight)
AttributeClassObserver
observeAttributeClass
in interface AttributeClassObserver
observeAttributeClass
in class GreenwaldKhannaNumericAttributeClassObserver
attVal
- the value of the attributeclassVal
- the classweight
- the weight of the instancepublic double probabilityOfAttributeValueGivenClass(double attVal, int classVal)
AttributeClassObserver
probabilityOfAttributeValueGivenClass
in interface AttributeClassObserver
probabilityOfAttributeValueGivenClass
in class GreenwaldKhannaNumericAttributeClassObserver
attVal
- the attribute valueclassVal
- the classpublic long getMaxOfValues()
getMaxOfValues
in interface IademNumericAttributeObserver
public void addValue(double attValue, int classValue, double weight)
addValue
in interface IademNumericAttributeObserver
public long getValueCount()
getValueCount
in interface IademNumericAttributeObserver
public long[] getClassDist()
getClassDist
in interface IademNumericAttributeObserver
public long getNumberOfCutPoints()
getNumberOfCutPoints
in interface IademNumericAttributeObserver
public long[] getLeftClassDist(double cut)
getLeftClassDist
in interface IademNumericAttributeObserver
public double getCut(int cutIndex)
getCut
in interface IademNumericAttributeObserver
public void computeClassDistProbabilities(double[][][] cut_value_classDist_lower, double[][][] cut_value_classDist_upper, double[][] counts_cut_value, boolean withIntervalEstimates)
computeClassDistProbabilities
in interface IademNumericAttributeObserver
protected long sum(long[] arr)
public ArrayList<Double> cutPointSuggestion(int numCortes)
cutPointSuggestion
in interface IademNumericAttributeObserver
public ArrayList<Double[]> computeConditionalProbPerBin(ArrayList<Double> cuts)
computeConditionalProbPerBin
in interface IademNumericAttributeObserver
public double[] computeConditionalProb(ArrayList<Double> cortes, double valor)
computeConditionalProb
in interface IademNumericAttributeObserver
public IademNumericAttributeObserver getCopy()
getCopy
in interface IademNumericAttributeObserver
public void reset()
reset
in interface IademNumericAttributeObserver
public void setMaxBins(int numTuples)
setMaxBins
in interface IademNumericAttributeObserver
public void computeClassDist(double[][][] cutClassDist)
computeClassDist
in interface IademNumericAttributeObserver
Copyright © 2019 University of Waikato, Hamilton, NZ. All Rights Reserved.