Package nltk :: Module evaluate :: Class ConfusionMatrix
[hide private]
[frames] | no frames]

type ConfusionMatrix

source code

                             object --+    
                                      |    
metrics.confusionmatrix.ConfusionMatrix --+
                                          |
                                         ConfusionMatrix

Instance Methods [hide private]
 
__init__(*args, **kwargs)
Construct a new confusion matrix from a list of reference values and a corresponding list of test values.
source code

Inherited from metrics.confusionmatrix.ConfusionMatrix: __getitem__, __repr__, __str__, key, pp

Instance Variables [hide private]
Method Details [hide private]

__init__(*args, **kwargs)
(Constructor)

source code 

Construct a new confusion matrix from a list of reference values and a corresponding list of test values.

Parameters:
  • reference - An ordered list of reference values.
  • test - A list of values to compare against the corresponding reference values.
Decorators:
  • @deprecated('Use nltk.metrics.ConfusionMatrix instead.')
Raises:
  • ValueError - If reference and length do not have the same length.
Overrides: metrics.confusionmatrix.ConfusionMatrix.__init__

Deprecated: Use nltk.metrics.ConfusionMatrix instead.