mlpack
Static Public Member Functions | List of all members
mlpack::tree::GiniImpurity Class Reference

Static Public Member Functions

static double Evaluate (const arma::Mat< size_t > &counts)
 
static double Range (const size_t numClasses)
 Return the range of the Gini impurity for the given number of classes. More...
 

Member Function Documentation

◆ Range()

static double mlpack::tree::GiniImpurity::Range ( const size_t  numClasses)
inlinestatic

Return the range of the Gini impurity for the given number of classes.

(That is, the difference between the maximum possible value and the minimum possible value.)


The documentation for this class was generated from the following file: