|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectweka.classifiers.rules.ConjunctiveRule.Antd
weka.classifiers.rules.ConjunctiveRule.NumericAntd
The antecedent with numeric attribute
Field Summary | |
protected Attribute |
att
The attribute of the antecedent |
protected double |
inform
The information of this antecedent test on the growing data |
protected double |
maxInfoGain
The maximum infoGain achieved by this antecedent test |
private double |
splitPoint
|
protected double[] |
uncover
The parameters related to the data not covered by the previous antecedents when the class is nominal |
protected double |
uncoverSum
The parameter related to the meanSquaredError of the data not covered by the previous antecedents when the class is numeric |
protected double |
uncoverWtSq
The parameter related to the meanSquaredError of the data not covered by the previous antecedents when the class is numeric |
protected double |
uncoverWtVl
The parameter related to the meanSquaredError of the data not covered by the previous antecedents when the class is numeric |
protected double |
value
The attribute value of the antecedent. |
Constructor Summary | |
ConjunctiveRule.NumericAntd(Attribute a,
double[] unc)
|
|
ConjunctiveRule.NumericAntd(Attribute a,
double sq,
double vl,
double wts)
|
Method Summary | |
protected double |
entropy(double[] value,
double sum)
Function used to calculate the entropy of given vector of values entropy = (1/sum)*{-sigma[i=1..P](Xi*log2(Xi)) + sum*log2(sum)} where P is the length of the vector |
Attribute |
getAttr()
|
double |
getAttrValue()
|
double |
getInfo()
|
double |
getMaxInfoGain()
|
double |
getSplitPoint()
|
boolean |
isCover(Instance inst)
Whether the instance is covered by this antecedent |
Instances[] |
splitData(Instances insts,
double defInfo)
Implements the splitData function. |
java.lang.String |
toString()
Prints this antecedent |
protected double |
wtMeanSqErr(double weightedSq,
double weightedValue,
double sum)
Function used to calculate the weighted mean squared error, i.e., sum[x-avg(x)]^2 based on the given elements of the formula: meanSquaredError = sum(Wi*Xi^2) - (sum(WiXi))^2/sum(Wi) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private double splitPoint
protected Attribute att
protected double value
protected double maxInfoGain
protected double inform
protected double uncoverWtSq
protected double uncoverWtVl
protected double uncoverSum
protected double[] uncover
Constructor Detail |
public ConjunctiveRule.NumericAntd(Attribute a, double[] unc)
public ConjunctiveRule.NumericAntd(Attribute a, double sq, double vl, double wts)
Method Detail |
public double getSplitPoint()
public Instances[] splitData(Instances insts, double defInfo)
splitData
in class ConjunctiveRule.Antd
insts
- the data to be splitdefInfo
- the default information for data
public boolean isCover(Instance inst)
isCover
in class ConjunctiveRule.Antd
inst
- the instance in question
public java.lang.String toString()
toString
in class ConjunctiveRule.Antd
public Attribute getAttr()
public double getAttrValue()
public double getMaxInfoGain()
public double getInfo()
protected double wtMeanSqErr(double weightedSq, double weightedValue, double sum)
weightedSq
- sum(Wi*Xi^2)weightedValue
- sum(WiXi)sum
- sum of weights
protected double entropy(double[] value, double sum)
value
- the given vector of valuessum
- the sum of the given values. It's provided just for efficiency.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |