machine-learning-and-ai
Use geemap machine learning conversion helpers and optional AI dataset discovery interfaces.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- machine-learning-and-ai
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Use geemap machine learning conversion helpers and optional AI dataset discovery interfaces.
- disable-model-invocation
- true
02 资源文件 4
- 参考文档references/api-reference.md8.2 KB
- 参考文档references/troubleshooting.md8.4 KB
- 参考文档references/workflows.md6.6 KB
- 脚本scripts/rf_tree_smoke.py5.4 KB
03 SKILL.md 正文
geemap Machine Learning and AI
Use this sub-skill when a task involves geemap's Earth Engine classification workflows, local scikit-learn decision-tree/random-forest conversion into Earth Engine classifier strings, classifier CSV or FeatureCollection persistence, or optional AI-assisted Earth Engine dataset discovery.
Start here
- Confirm basic geemap, Earth Engine, and optional dependency setup with ../../references/installation-and-auth.md.
- For local model conversion, use references/workflows.md and the bundled scripts/rf_tree_smoke.py.
- For exact function signatures, inputs, outputs, and gotchas, use references/api-reference.md.
- For error handling, use references/troubleshooting.md.
What this sub-skill owns
geemap.ml.tree_to_stringfor one fitted scikit-learn decision tree.geemap.ml.rf_to_stringsfor fitted scikit-learn random-forest or ExtraTrees-style ensembles.geemap.ml.strings_to_classifierfor in-memory Earth Engine classifier construction from tree strings.geemap.ml.trees_to_csvandgeemap.ml.csv_to_classifierfor local CSV persistence and reload.geemap.ml.export_trees_to_fcandgeemap.ml.fc_to_classifierfor Earth Engine asset FeatureCollection persistence and reload.- Earth Engine supervised/unsupervised classification workflow structure: sample training data, train or import a classifier/clusterer, classify an image, then route display or accuracy work to the sibling sub-skills.
- Optional
geemap.aidataset catalog, Gemini/Genie, embedding, and dataset explorer surfaces when theaiextra, Google credentials, network access, and notebook UI are available.
Route elsewhere
- Generic file conversion, Earth Engine export tasks, shapefile/GeoJSON/CSV data movement, or non-classifier table export: ../conversion-and-io/SKILL.md.
- Adding classified images or vector layers to an interactive map: ../interactive-earth-engine-maps/SKILL.md.
- Accuracy matrices, charts, legends, palettes, static cartography, or chart rendering: ../visualization-and-charts/SKILL.md.
- Timelapse, GIF, app, or publication workflows: ../timelapse-and-apps/SKILL.md.
Operating constraints
- Local tree conversion is concrete and deterministic, but it requires scikit-learn, numpy, pandas, and a fitted compatible estimator.
- Earth Engine classifier objects can be constructed locally from strings, CSV, or FeatureCollections, but using them to classify images or export assets requires Earth Engine initialization, credentials, a project when required by the Earth Engine client, and network access.
- AI helpers are optional, credentialed, and networked. Treat them as convenience interfaces, not required geemap ML functionality.
- Do not rely on source notebooks or repository checkout files at runtime; the self-contained recipes and script in this sub-skill are the supported reference.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).