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

Class ServerStrategy

source code

object --+
         |
        ServerStrategy

ServerStrategy is intented to process an instance at a time.

Instance Methods [hide private]
 
__init__(self, host, port, model_name, arff_header, max_bufsize=4092)
Constructor
source code
 
get_arff_header(self) source code
 
get_instance_data(self, arff_file) source code
 
_call_server(self, data_string) source code
 
classify(self, arff_file, dict_position_instanceid=None) source code

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

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, host, port, model_name, arff_header, max_bufsize=4092)
(Constructor)

source code 

Constructor

Parameters:
  • host - A String
  • port - An integer
  • model_name - A String. It indicates the name of a existent model at the Server
  • arff_header - A String. It indicates the header of the ARFF for the specified model
Overrides: object.__init__

classify(self, arff_file, dict_position_instanceid=None)

source code 
Parameters:
  • arff_file