1
2
3
4
5
6
7 import _mylibsvm
8 import new
9 new_instancemethod = new.instancemethod
10 try:
11 _swig_property = property
12 except NameError:
13 pass
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
28 return _swig_setattr_nondynamic(self,class_type,name,value,0)
29
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
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:
47 _newclass = 0
48 del types
49
50
51 libsvm_destroy = _mylibsvm.libsvm_destroy
52