MCPcopy Create free account
hub / github.com/clips/pattern / get_SV

Method get_SV

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

Source from the content-addressed store, hash-verified

282 for i in xrange(self.l)]
283
284 def get_SV(self):
285 result = []
286 for sparse_sv in self.SV[:self.l]:
287 row = dict()
288
289 i = 0
290 while True:
291 row[sparse_sv[i].index] = sparse_sv[i].value
292 if sparse_sv[i].index == -1:
293 break
294 i += 1
295
296 result.append(row)
297 return result
298
299def toPyModel(model_ptr):
300 """

Callers 1

support_vectorsMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected