Package miopia :: Package adapter :: Module Adapter :: Class FeatureInfo
[hide private]
[frames] | no frames]

Class FeatureInfo

source code

object --+
         |
        FeatureInfo

This class provides information about a feature for a supervised classifier

Instance Methods [hide private]
 
__init__(self, feature, ranking, information_gain, feature_type)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
get_feature(self)
Returns: A string with the feature
source code
 
get_feature_type(self)
Returns: An constant of FeatureType which represents the type of the feature
source code
 
get_information_gain(self)
Returns: A float
source code
 
get_ranking(self)
Returns: A float with the ranking of the feature
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, feature, ranking, information_gain, feature_type)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • feature - The idenfier of the feature. A string
  • ranking - The ranking of the feature with respect to the others. A float
  • information_gain - A float indicating the information gain provided by the feature
  • feature_type - A constant of FeatureType which represents the type of the feature
Overrides: object.__init__

get_feature(self)

source code 
Returns:
A string with the feature

get_feature_type(self)

source code 
Returns:
An constant of FeatureType which represents the type of the feature

get_information_gain(self)

source code 
Returns:
A float

get_ranking(self)

source code 
Returns:
A float with the ranking of the feature