Esempio n. 1
0
 def configure(self, type, penalty, maxiter=99999, seed=1, refopt=-1e38):
     self.reset()
     self.seed = seed
     self.method = type
     self.penalty = penalty
     l2svm.configure(ptype=type, ppenalty=penalty, pmaxiter=maxiter, seed=seed, prefopt=refopt)
     check_error()
     return Runner(self)
Esempio n. 2
0
 def setUp(self):
     super().setUp()
     l2svm.setdata(self.rows, self.cols, self.vals, self.labels, self.weight)
     raiseException()
     l2svm.configure(self.method, self.penalty, self.maxiter, 1, self.refopt)
     raiseException()