Package classifiers :: Module q_classifier_r :: Class datum_c
[frames] | no frames]

Class datum_c

source code


This is an unclassified datum, either in the test or training set.

Instance Methods
 
__init__(self, vector, uid=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__repr__(self)
repr(x)
source code
 
__cmp__(self, other) source code

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

Instance Variables
str uid
a string that identfies a particular datum.
numpy.ndarray value
a feature vector
Properties

Inherited from object: __class__

Method Details

__init__(self, vector, uid=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • vector - a vector of numbers
  • uid (str) - an arbitrary identifier for a datum
Overrides: object.__init__

__repr__(self)
(Representation operator)

source code 

repr(x)

Overrides: object.__repr__
(inherited documentation)

Instance Variable Details

uid

a string that identfies a particular datum. This is not used for classification, but is passed through to the output. (It can also used to define groups of data.)