python 高斯过程_Python-scikit_learn中的克里格(高斯过程)

博主计划利用scikit-learn模块进行三维空间的克里金插值,以大气中某种气体浓度的垂直变化数据为输入。数据垂直方向上每隔几英尺有值,但水平方向间隔较远。博主希望考虑垂直方向变化大于水平方向的假设,并调整或通过统计定义该参数。目标是生成一个50x50x1英尺的3D网格数据输出,形式为[x坐标, y坐标, 值]。尽管时间紧迫,博主希望确定此操作在Python中是否可行。
摘要由CSDN通过智能技术生成

1586010002-jmsa.png

I am considering using this method to interpolate some 3D points I have. As an input I have atmospheric concentrations of a gas at various elevations over an area. The data I have appears as values every few feet of vertical elevation for several tens of feet, but horizontally separated by many hundreds of feet (so 'columns' of tightly packed values).

The assumption is that values vary in the vertical direction significantly more than in the horizontal direction at any given point in time.

I want to perform 3D kriging with that assumption accounted for (as a parameter I can adjust or that is statistically defined - either/or).

I believe the scikit learn module can do this. If it can, my question is how do I create a discrete cell output? That is, output into a 3D grid of data with dimensions of, say, 50 x 50 x 1 feet. Ideally, I would like an output of [x_location, y_location, value] with separation of those (or similar) distances.

Unfortunately I don't have a lot of time to play around with it, so I'm just hoping to figure out if this is possible in Python before delving into it. Thanks!

解决方案

Yes, you can definitely do that in scikit_learn.

In fact, it is a basic feature of kriging/Gaussian process regression that you can use anisotropic covariance kernels.

As it is precised in the manual (cited below) ou can either set the parameters of the covariance yourself or estimate them. And you can choose either having all parameters equal or all different.

theta0 : double array_like, optional

An array with shape (n_features, ) or (1, ). The parameters in the

autocorrelation model. If thetaL and thetaU are also specified, theta0

is considered as the starting point for the maximum likelihood

estimation of the best set of parameters. Default assumes isotropic

autocorrelation model with theta0 = 1e-1.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值