mlpack  master
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...
 

Detailed Description

Definition at line 21 of file gini_impurity.hpp.

Member Function Documentation

static double mlpack::tree::GiniImpurity::Evaluate ( const arma::Mat< size_t > &  counts)
inlinestatic

Definition at line 24 of file gini_impurity.hpp.

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.)

Definition at line 77 of file gini_impurity.hpp.


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