public class KLDivergence extends Divergence
ZERO_TO_DIVIDE
Constructor and Description |
---|
KLDivergence() |
Modifier and Type | Method and Description |
---|---|
double |
metric(double prCT1,
double prCT0)
Calculate distance divergence metric between two probabilities.
|
double |
norm(double prCT1,
double prCT0,
double prLCT1,
double prLCT0)
Calculate normalization factor to normalize gain.
|
gain, node, split, value
public double metric(double prCT1, double prCT0)
Divergence
metric
in class Divergence
public double norm(double prCT1, double prCT0, double prLCT1, double prLCT0)
Divergence
norm
in class Divergence
prCT1
- probability of treatment groupprCT0
- probability of control groupprLCT1
- probability of treatment group in left nodeprLCT0
- probability of control group in left node