public class Entropy extends Object implements Impurity
entropy during
binary classification.| Constructor and Description |
|---|
Entropy() |
| Modifier and Type | Method and Description |
|---|---|
static double |
calculate(double c0,
double c1)
:: DeveloperApi ::
entropy calculation
|
static double |
calculate(double count,
double sum,
double sumSquares) |
public static double calculate(double c0,
double c1)
c0 - count of instances with label 0c1 - count of instances with label 1public static double calculate(double count,
double sum,
double sumSquares)