Package ml :: Package var :: Module classifier :: Class OrangeClassifier
[hide private]
[frames] | no frames]

Class OrangeClassifier

source code

                  object --+        
                           |        
      Orange.core.OrangeBase --+    
                               |    
Orange.classification.Classifier --+
                                   |
                                  OrangeClassifier
Known Subclasses:

Basic wrapper to encapsulate common functions for all classifier subclasses

Instance Methods [hide private]
 
__init__(self, wrapped)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__call__(self, example, what=2)
x(...)
source code
 
classify_orange_table(self, orange_table, return_type=2)
Use the current classifier to classify the given orange table and return a vector (list) of the given values...
source code
 
clean_discrete_features(self, orange_table) source code
 
classify_dataset(self, dataset, return_type=2) source code
 
classify_parallelsentence(self, parallelsentence, return_type=2) source code
 
print_content(self, basename='classifier')
Depending on the type of the classifier, output its contents to an external file
source code

Inherited from Orange.classification.Classifier: __reduce__

Inherited from Orange.core.OrangeBase: __delattr__, __getattribute__, __hash__, __nonzero__, __repr__, __setattr__, __str__, clone, dump, reference, setattr, typeid, write

Inherited from object: __format__, __reduce_ex__, __sizeof__, __subclasshook__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, wrapped) source code
Class Variables [hide private]

Inherited from Orange.classification.Classifier: GetBoth, GetProbabilities, GetValue

Instance Variables [hide private]
Orange.classification.Classifier classifier
the wrapped classifier
Properties [hide private]

Inherited from Orange.core.OrangeBase: name

Inherited from object: __class__

Method Details [hide private]

__new__(cls, wrapped)
Static Method

source code 
Returns: a new object with type S, a subtype of T
Overrides: object.__new__
(inherited documentation)

__init__(self, wrapped)
(Constructor)

source code 

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

Overrides: object.__init__
(inherited documentation)

__call__(self, example, what=2)
(Call operator)

source code 

x(...)

Overrides: Orange.classification.Classifier.__call__
(inherited documentation)

classify_orange_table(self, orange_table, return_type=2)

source code 

Use the current classifier to classify the given orange table and return a vector (list) of the given values
@param orange_table: An orange table with unclassified instances, which we need to classify
@type orange_table: L{Orange.data.Table}
@param return_type: Specifies whether the classification of each intance should return only the predicted value, only the predicted distribution or both (default),
@type return_type: L{Orange.classification.Classifier.GetBoth} or L{Orange.classification.Classifier.GetProbabilities} or L{Orange.classification.Classifier.GetBoth)}
@return: a list of the classification results, one list item per instance
@rtype: [L{Orange.classification.Value}, ...] or [L{Orange.classification.Distribution}, ...] or [(L{Orange.classification.Value},L{Orange.classification.Distribution}), ...]    

print_content(self, basename='classifier')

source code 

Depending on the type of the classifier, output its contents to an external file

Parameters:
  • basename (string) - the filename without extension of the classifier