Install
openclaw skills install @ruiduobao/geoskill-spatial-regressionopenclaw skills install @ruiduobao/geoskill-spatial-regressionEnd-to-end spatial regression workflow: OLS fitting → residual spatial autocorrelation diagnostics (Moran's I + Lagrange Multiplier) → maximum likelihood estimation of the spatial lag model (SLM) and spatial error model (SEM) (grid search + exact log-determinant).
pip install numpy rasterio scipy geopandas shapely scikit-learn
python geoskill-spatial-regression.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-spatial-regression.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-spatial-regression.py --input <your data file> --output-dir ./out3
python geoskill-spatial-regression.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| File | Format | Description |
|---|---|---|
regression_stats.json | GeoTIFF/GeoJSON/JSON | Primary output |
output-manifest.json | JSON | Run manifest |
--synthetic mode reads no external data.MIT
空间回归全流程:OLS 拟合 → 残差空间自相关诊断(Moran's I + Lagrange Multiplier)→ 空间滞后模型(SLM)与空间误差模型(SEM)的极大似然估计(网格搜索 + 精确 log 行列式)。
pip install numpy rasterio scipy geopandas shapely scikit-learn
python geoskill-spatial-regression.py --bbox 116.0 39.0 117.0 40.0 --synthetic --output-dir ./out
python geoskill-spatial-regression.py --bbox 121.0 31.0 122.0 32.0 --synthetic --output-dir ./out2 --quiet
python geoskill-spatial-regression.py --input <你的数据文件> --output-dir ./out3
python geoskill-spatial-regression.py --bbox 116.39 39.90 116.40 39.91 --synthetic --output-dir ./out4 --quiet
| 文件 | 格式 | 说明 |
|---|---|---|
regression_stats.json | GeoTIFF/GeoJSON/JSON | 主产物 |
output-manifest.json | JSON | 运行清单 |
--synthetic 模式不读取任何外部数据。MIT