code: def kernel(self, kernel):
          
          result = javabridge.static_call(
              "weka/classifiers/KernelHelper", "setKernel",
              "(Ljava/lang/Object;Lweka/classifiers/functions/supportVector/Kernel;)Z",
              self.jobject, kernel.jobject)
          if not result:
              raise Exception("Failed to set kernel!")
docs: Sets the kernel.
  
          :param kernel: the kernel to set
          :type kernel: Kernel