示例#1
0
def int_array_to_list(x, n):
    return [svmc.int_getitem(x, i) for i in range(n)]
示例#2
0
文件: _svm.py 项目: Anhmike/PyMVPA
def int_array_to_list(x, n):
    return [svmc.int_getitem(x, i) for i in xrange(n)]
示例#3
0
 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)
     ]
示例#4
0
文件: _svm.py 项目: Anhmike/PyMVPA
 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 ) ]