learn kernel function of machine learning by PRML with scikit-learn