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)
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()