def int_array_to_list(x, n): return [svmc.int_getitem(x, i) for i in range(n)]
def int_array_to_list(x, n): return [svmc.int_getitem(x, i) for i in xrange(n)]
def get_n_sv(self): """Returns a list with the number of support vectors per class. """ return [ svmc.int_getitem(self.model.nSV, i) for i in range(self.nr_class) ]
def get_n_sv(self): """Returns a list with the number of support vectors per class. """ return [ svmc.int_getitem(self.model.nSV, i) for i in range( self.nr_class ) ]