Search code examples
scikit-learngaussian

Translating scikit-learn version 0.17 code to verion 0.20


Hi I was wonder if anyone has any idea how to translate the below scikit-learn version 0.17 code to version 0.20

from sklearn.gaussian_process import GaussianProcess
gp = GaussianProcess(corr='cubic', theta0=1e-2, thetaL=1e-4, thetaU=1E-1,
                     random_start=100)
xfit = np.linspace(0, 10, 1000)
yfit, MSE = gp.predict(xfit[:, np.newaxis], eval_MSE=True)

Thank you in advance!


Solution

  • The GaussianProcess is now split between GaussianProcessRegressor and GaussianProcessClassifier