def __getstate__(self):
        state = super(MRD, self).__getstate__()
        if 'kern' in state:
            del state['kern']
        if 'likelihood' in state:
            del state['likelihood']
        return state
dataset/ETHPy150Open SheffieldML/GPy/GPy/models/mrd.py/MRD.__getstate__/original