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

Method __str__

pattern/vector/svm/liblinear.py:147–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 self.parse_options(options)
146
147 def __str__(self):
148 s = ''
149 attrs = parameter._names + list(self.__dict__.keys())
150 values = map(lambda attr: getattr(self, attr), attrs)
151 for attr, val in zip(attrs, values):
152 s += (' %s: %s\n' % (attr, val))
153 s = s.strip()
154
155 return s
156
157 def set_to_default_values(self):
158 self.solver_type = L2R_L2LOSS_SVC_DUAL

Callers

nothing calls this directly

Calls 3

zipFunction · 0.85
stripMethod · 0.80
keysMethod · 0.45

Tested by

no test coverage detected