public class GiniImpurityMeasure extends Object implements ImpurityMeasure<GiniImpurityMeasure>
\-frac{1}{L}\sum_{i=1}^{s}l_i^2 - \frac{1}{R}\sum_{i=s+1}^{n}r_i^2
.Modifier and Type | Method and Description |
---|---|
GiniImpurityMeasure |
add(GiniImpurityMeasure b)
Adds the given impurity to this.
|
long[] |
getLeft() |
long[] |
getRight() |
double |
impurity()
Calculates impurity measure as a single double value.
|
GiniImpurityMeasure |
subtract(GiniImpurityMeasure b)
Subtracts the given impurity for this.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
compareTo
public double impurity()
impurity
in interface ImpurityMeasure<GiniImpurityMeasure>
public GiniImpurityMeasure add(GiniImpurityMeasure b)
add
in interface ImpurityMeasure<GiniImpurityMeasure>
b
- Another impurity.public GiniImpurityMeasure subtract(GiniImpurityMeasure b)
subtract
in interface ImpurityMeasure<GiniImpurityMeasure>
b
- Another impurity.public long[] getLeft()
public long[] getRight()
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024