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

◆ Evaluate()

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

Definition at line 24 of file gini_impurity.hpp.

◆ Range()

static double 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:
  • /home/jenkins-mlpack/mlpack.org/_src/mlpack-3.3.1/src/mlpack/methods/hoeffding_trees/gini_impurity.hpp