|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Impurity
:: Experimental ::
Trait for calculating information gain.
This trait is used for
(a) setting the impurity parameter in Strategy
(b) calculating impurity values from sufficient statistics.
| Method Summary | |
|---|---|
double |
calculate(double[] counts,
double totalCount)
:: DeveloperApi :: information calculation for multiclass classification |
double |
calculate(double count,
double sum,
double sumSquares)
:: DeveloperApi :: information calculation for regression |
| Method Detail |
|---|
double calculate(double[] counts,
double totalCount)
counts - Array[Double] with counts for each labeltotalCount - sum of counts for all labels
double calculate(double count,
double sum,
double sumSquares)
count - number of instancessum - sum of labelssumSquares - summation of squares of the labels
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||