fix issue #2901

there is no degree parameter for other kernels except poly kernel