Skip to content
Back to skills

GEO INFER AI

ASecurity

Machine learning pipelines and model selection for geospatial AI. Use when training spatial ML models, building prediction pipelines, performing feature engineering on geographic data, spatial interpolation/kriging, or evaluating spatial model performance.

  • 17 stars
  • 0 votes
  • 0 copies
  • 5 views
  • Added September 1, 2026
datapythonapiperformance

Works with

  • api

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 27, 2026

npx -y skills add ActiveInferenceInstitute/GEO-INFER --skill GEO-INFER-AI --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of GEO INFER AI?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for GEO INFER AI
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/activeinferenceinstitute-geo-infer-ai/badge)](https://www.skillsdirectory.com/skills/activeinferenceinstitute-geo-infer-ai)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: geo-infer-ai
description: Machine learning pipelines and model selection for geospatial AI. Use when training spatial ML models, building prediction pipelines, performing feature engineering on geographic data, spatial interpolation/kriging, or evaluating spatial model performance.
prerequisites:
  recommended:
    - geo-infer-space
    - geo-infer-data
    - geo-infer-act
    - geo-infer-bayes
difficulty: advanced
estimated_time: 60min
examples_dir: ../GEO-INFER-EXAMPLES/examples/
---

# GEO-INFER-AI

## Instructions

### Core Capabilities

- **ML pipelines**: Spatial feature engineering → training → evaluation with scikit-learn
- **Geospatial active inference**: H3-grid environmental modeling and belief
  updating via `EnvironmentalActiveInferenceEngine`; multi-scale hierarchical
  spatial analysis via `MultiScaleHierarchicalAnalyzer` with Gaussian-process
  and DBSCAN spatial methods
- **Model selection**: Cross-validation, hyperparameter search, spatial block cross-validation
- **Spatial features**: Coordinate-based features (distances, angles, spatial lag)
- **Spatial interpolation**: IDW and Ordinary Kriging with prediction variance
- **Explainability**: Permutation importance, SHAP-like values, partial dependence
- **MLOps**: Optional MLflow experiment tracking (graceful degradation without it)

### Key Imports

```python
from geo_infer_ai import (
    ModelTrainer,
    TrainingConfig,
    GeospatialModelEvaluator,
    ImageClassifier,
    SpatialPredictor,
    IDWInterpolator,
    OrdinaryKriging,
    GeospatialFeatureEngineer,
    ModelExplainer,
    MLflowPipeline,
    EnvironmentalActiveInferenceEngine,
    MultiScaleHierarchicalAnalyzer,
```

## Examples

Train and spatially cross-validate a model:

```python
from sklearn.ensemble import RandomForestRegressor
from geo_infer_ai import GeospatialModelEvaluator

model = RandomForestRegressor(n_estimators=50, random_state=42)
evaluator = GeospatialModelEvaluator()

results = evaluator.cross_validate_spatial(model, X, y, coordinates, n_splits=3)
print(results["mean_score"], results["std_score"])
```

Fit an IDW interpolator:

```python
import numpy as np
from geo_infer_ai import IDWInterpolator

coords = np.array([[0.0, 0.0], [1.0, 0.0], [0.0, 1.0]])
values = np.array([10.0, 20.0, 30.0])

interpolator = IDWInterpolator(power=2.0).fit(coords, values)
pred = interpolator.predict(np.array([[0.5, 0.5]]))
```

Spatial feature engineering:

```python
from geo_infer_ai import GeospatialFeatureEngineer

engineer = GeospatialFeatureEngineer(normalize=True)
features = engineer.create_spatial_features(coordinates, include_distances=True)
```

## Guidelines

- Use `cross_validate_spatial` (not shuffled K-fold) when samples are spatially
  autocorrelated — it blocks contiguous regions to prevent spatial leakage.
- Kriging `predict` returns `(values, variances)`; use the variances for
  prediction-uncertainty estimates.
- `handle_spatial_autocorr` on `GeospatialFeatureEngineer` is advisory only;
  spatial autocorrelation is handled by spatial models and block CV.

### Integrations

- Standalone: depends only on numpy, pandas, scikit-learn, h3
- Optional MLflow tracking via the `mlops` extra (`MLflowPipeline` degrades
  gracefully to disabled mode when MLflow is absent)
- GEO-INFER-MATH provides the config-driven general-purpose interpolation
  counterparts (see `geo_infer_ai.models.predictive` docstring for the
  deliberate API differences)
- Test: `uv run python GEO-INFER-TEST/run_unified_tests.py --module AI`

Files in this skill

  • AGENTS.md1.3 KB
  • README.md949 B
  • SKILL.md1.6 KB
  • docs/AGENTS.md1.1 KB
  • docs/README.md768 B
  • docs/api_schema.yaml38.2 KB
  • examples/AGENTS.md1.2 KB
  • examples/README.md829 B
  • examples/basic_classification.py2.5 KB
  • examples/spatial_prediction.py3.5 KB
  • pyproject.toml3.3 KB
  • requirements.txt107 B
  • setup.py1.6 KB
  • src/AGENTS.md1.1 KB
  • src/README.md764 B
  • src/geo_infer_ai/AGENTS.md1.2 KB
  • src/geo_infer_ai/README.md851 B
  • src/geo_infer_ai/__init__.py1.3 KB
  • src/geo_infer_ai/core/AGENTS.md1.2 KB
  • src/geo_infer_ai/core/README.md954 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.