GaussianProcessRegressor

GaussianProcessRegressor

有没有人对GaussianProcessRegressor有类似的问题?

我更新了所有软件包,但仍然出现错误:

from sklearn.gaussian_process import GaussianProcessRegressor
ImportError: cannot import name GaussianProcessRegressor


谢谢!

最佳答案

from sklearn import gaussian_process
kernel = gaussian_process.kernels.RBF(50., (50., 50.))
gpr = gaussian_process.GaussianProcessRegressor(kernel=kernel, normalize_y=False)


以这种方式导入

07-26 00:45