'Get parameters of this kernel.
Parameters
deep : boolean, optional
If True, will return the parameters for this estimator and
contained subobjects that are estimators.
Returns
params : mapping of string to any
Parameter names mapped to their values.'

def get_params(self, deep=True):

    params = dict(kernel=self.kernel, exponent=self.exponent)
    if deep:
        deep_items = self.kernel.get_params().items()
        params.update(((('kernel__' + k), val) for (k, val) in deep_items))
    return params
