|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mahout.df.split.IgSplit
org.apache.mahout.df.split.DefaultIgSplit
public class DefaultIgSplit
Default, not optimized, implementation of IgSplit
Field Summary |
---|
Fields inherited from class org.apache.mahout.df.split.IgSplit |
---|
LOG2 |
Constructor Summary | |
---|---|
DefaultIgSplit()
|
Method Summary | |
---|---|
protected double |
categoricalIg(Data data,
int attr)
Computes the Information Gain for a CATEGORICAL attribute |
Split |
computeSplit(Data data,
int attr)
Computes the best split for the given attribute |
protected double |
entropy(Data data)
Computes the Entropy |
protected double |
numericalIg(Data data,
int attr,
double split)
Computes the Information Gain for a NUMERICAL attribute given a splitting value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIgSplit()
Method Detail |
---|
public Split computeSplit(Data data, int attr)
IgSplit
computeSplit
in class IgSplit
protected double categoricalIg(Data data, int attr)
data
- attr
-
protected double numericalIg(Data data, int attr, double split)
data
- attr
- split
-
protected double entropy(Data data)
data
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |