Package PyML :: Package classifiers :: Package ext :: Module mylibsvm
[frames] | no frames]

Source Code for Module PyML.classifiers.ext.mylibsvm

 1  # This file was automatically generated by SWIG (http://www.swig.org). 
 2  # Version 1.3.31 
 3  # 
 4  # Don't modify this file, modify the SWIG interface instead. 
 5  # This file is compatible with both classic and new-style classes. 
 6   
 7  import _mylibsvm 
 8  import new 
 9  new_instancemethod = new.instancemethod 
10  try: 
11      _swig_property = property 
12  except NameError: 
13      pass # Python < 2.2 doesn't have 'property'. 
14 -def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
15 if (name == "thisown"): return self.this.own(value) 16 if (name == "this"): 17 if type(value).__name__ == 'PySwigObject': 18 self.__dict__[name] = value 19 return 20 method = class_type.__swig_setmethods__.get(name,None) 21 if method: return method(self,value) 22 if (not static) or hasattr(self,name): 23 self.__dict__[name] = value 24 else: 25 raise AttributeError("You cannot add attributes to %s" % self)
26
27 -def _swig_setattr(self,class_type,name,value):
28 return _swig_setattr_nondynamic(self,class_type,name,value,0)
29
30 -def _swig_getattr(self,class_type,name):
31 if (name == "thisown"): return self.this.own() 32 method = class_type.__swig_getmethods__.get(name,None) 33 if method: return method(self) 34 raise AttributeError,name
35
36 -def _swig_repr(self):
37 try: strthis = "proxy of " + self.this.__repr__() 38 except: strthis = "" 39 return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)
40 41 import types 42 try: 43 _object = types.ObjectType 44 _newclass = 1 45 except AttributeError:
46 - class _object : pass
47 _newclass = 0 48 del types 49 50 51 libsvm_destroy = _mylibsvm.libsvm_destroy 52