def kernel(request): if request.param == 1: return GaussianKernel(sigma=1) elif request.param == 2: return LinearKernel() elif request.param == 3: return PolynomialKernel(1.2, 3, 2.5)
def k3(): return PolynomialKernel(1.2, 3, 2.5)