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

Method get_labels

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

Source from the content-addressed store, hash-verified

253 return liblinear.get_nr_class(self)
254
255 def get_labels(self):
256 nr_class = self.get_nr_class()
257 labels = (c_int * nr_class)()
258 liblinear.get_labels(self, labels)
259 return labels[:nr_class]
260
261 def is_probability_model(self):
262 return (liblinear.check_probability_model(self) == 1)

Callers

nothing calls this directly

Calls 1

get_nr_classMethod · 0.95

Tested by

no test coverage detected