MCPcopy Index your code
hub / github.com/clips/pattern / __str__

Method __str__

pattern/vector/svm/libsvm.py:131–139  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

129 self.parse_options(options)
130
131 def __str__(self):
132 s = ''
133 attrs = svm_parameter._names + list(self.__dict__.keys())
134 values = map(lambda attr: getattr(self, attr), attrs)
135 for attr, val in zip(attrs, values):
136 s += (' %s: %s\n' % (attr, val))
137 s = s.strip()
138
139 return s
140
141 def set_to_default_values(self):
142 self.svm_type = C_SVC;

Callers

nothing calls this directly

Calls 3

zipFunction · 0.85
stripMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected