Package nltk_lite :: Package contrib :: Package classifier :: Module instances :: Class TrainingInstances
[hide private]
[frames] | no frames]

Class TrainingInstances

source code

UserList.UserList --+    
                    |    
            Instances --+
                        |
                       TrainingInstances

Instance Methods [hide private]
 
__init__(self, instances) source code
 
filter(self, attribute, attr_value) source code
 
value_ranges(self, attributes)
Returns an array of range objects, in which each corresponds to the range of values an attribute in the attributes parameter can take.
source code
 
values_grouped_by_attribute(self, attributes)
Returns an array where each element is an array of attribute values for a particular attribute len(returned array) is equal to len(attributes)
source code
 
__as_float(self, values) source code
 
klass_values(self) source code
 
supervised_breakpoints(self, attribute) source code
 
attribute_values(self, attribute) source code
 
sort_by(self, attribute) source code

Inherited from Instances: are_valid, discretise, remove_attributes

Inherited from UserList.UserList: __add__, __cmp__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __le__, __len__, __lt__, __mul__, __ne__, __radd__, __repr__, __rmul__, __setitem__, __setslice__, append, count, extend, index, insert, pop, remove, reverse, sort

Method Details [hide private]

__init__(self, instances)
(Constructor)

source code 
Overrides: Instances.__init__

value_ranges(self, attributes)

source code 

Returns an array of range objects, in which each corresponds to the range of values an attribute in the attributes parameter can take. len(returned range array) is equal to len(attributes)