| Trees | Indices | Help |
|
|---|
|
|
Information Theory functionality
|
|||
| |||
|
|||
| InfoType | |||
|
|||
|
|||
|
|||
|
|||
|
|||
Calculates the chi squared value for a variable
ARGUMENTS:
- varMat: a Numeric Array object
varMat is a Numeric array with the number of possible occurances
of each result for reach possible value of the given variable.
So, for a variable which adopts 4 possible values and a result which
has 3 possible values, varMat would be 4x3
RETURNS:
- a Python float object
C++ signature:
ChiSquare(boost::python::api::object) -> double
|
calculates the informational entropy of the values in an array
ARGUMENTS:
- resMat: pointer to a long int array containing the data
- dim: long int containing the length of the _tPtr_ array.
RETURNS:
a double
C++ signature:
InfoEntropy(boost::python::api::object) -> double
|
Calculates the information gain for a variable
ARGUMENTS:
- varMat: a Numeric Array object
varMat is a Numeric array with the number of possible occurances
of each result for reach possible value of the given variable.
So, for a variable which adopts 4 possible values and a result which
has 3 possible values, varMat would be 4x3
RETURNS:
- a Python float object
NOTES
- this is a dropin replacement for _PyInfoGain()_ in entropy.py
C++ signature:
InfoGain(boost::python::api::object) -> double
|
| Trees | Indices | Help |
|
|---|
| Generated by Epydoc 3.0beta1 on Sat May 24 08:37:03 2008 | http://epydoc.sourceforge.net |