Package miopia :: Package classifier :: Module MetaStrategy :: Class MetaStrategy
[hide private]
[frames] | no frames]

Class MetaStrategy

source code

                                       object --+        
                                                |        
    ClassificationStrategy.ClassificationStrategy --+    
                                                    |    
WekaClassificationStrategy.WekaClassificationStrategy --+
                                                        |
                                                       MetaStrategy

A wrapper for the meta classifier AttributeSelectedClassifier provided by the WEKA framework

Instance Methods [hide private]
 
__init__(self, evaluator=None, search_method=None, classifier_weka=None, path_weka=None, results_file='/tmp/outputMeta.txt', cl_params='-s 4 -no-cv ', model=None)
Constructor
source code
 
get_dict_information(self) source code
 
get_evaluator(self) source code
 
get_search_method(self) source code
 
get_base_classifier_configuration(self) source code
 
get_base_classifier_path(self) source code
 
_train_model(self, arff_training_file, arff_development_file, output_file) source code
 
_get_model_classifications(self, arff_file, results_file) source code
 
meta_information(self, meta_information_file) source code

Inherited from WekaClassificationStrategy.WekaClassificationStrategy: classify, train

Inherited from ClassificationStrategy.ClassificationStrategy: polarity, polarity_info

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

Class Variables [hide private]
  ALLOWED_JAVA_HEAP_XMX = '11000M'

Inherited from WekaClassificationStrategy.WekaClassificationStrategy: UNKWOWN_CLASS_SYMBOL

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, evaluator=None, search_method=None, classifier_weka=None, path_weka=None, results_file='/tmp/outputMeta.txt', cl_params='-s 4 -no-cv ', model=None)
(Constructor)

source code 

Constructor

Parameters:
  • evaluator - An instance of miope.classifier.WekaClassificationStrategy.AttributeEvaluator
  • search_method - An instance of miope.classifier.WekaClassificationStrategy.SearchMethod
  • classifier_weka - A element of ClassifierWekaPath or an instance of miope.classifier.MetraStrategy
  • path_weka - A path to the weka.jar. None if weka is in your classpath
  • cl_params - A string. It specifies the configuration of the WEKA classifier. See WEKA command line options for a detailed explanation.
  • model - A path to a trained model (SOMETHING.model). If None, a model must be trained using train() method.
Overrides: object.__init__

meta_information(self, meta_information_file)

source code 
Parameters:
  • meta_information_file - A string. The path to output file provided by WEKA after training the model. @return A dictionary with meta information about the classifier.