mars-cloud-clustering
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
03 SKILL.md 正文
name: mars-cloud-clustering description: Clustering Mars cloud annotations using DBSCAN with a custom distance metric and evaluating against expert labels. Use this skill when processing citizen science data that needs to be matched to ground truth points.
Mars Cloud Clustering Logic
This skill covers the implementation of DBSCAN with a custom distance metric and the evaluation of clusters against expert annotations.
Custom Distance Metric
DBSCAN should use a custom distance metric defined as:
d(a, b) = sqrt((w * Δx)² + ((2 - w) * Δy)²)
where w is the shape_weight.
Implementation in Python:
import numpy as np
from sklearn.cluster import DBSCAN
def custom_metric(a, b, w):
dx = a[0] - b[0]
dy = a[1] - b[1]
return np.sqrt((w * dx)**2 + ((2 - w) * dy)**2)
# For use in DBSCAN (precompute or use a callable)
# metric=lambda u, v: custom_metric(u, v, w)
Evaluation Workflow
For each image:
- Clustering: Run DBSCAN on citizen science points.
- Centroids: Compute the mean (x, y) for each cluster found.
- Greedy Matching:
- Match centroids to expert points using standard Euclidean distance.
- Use a greedy approach: match the closest pair first, then the next closest, etc.
- Max distance threshold: 100 pixels.
- Metrics:
- True Positives (TP): Number of matches.
- False Positives (FP): Number of clusters - TP.
- False Negatives (FN): Number of expert points - TP.
- F1 Score:
2 * TP / (2 * TP + FP + FN) - Delta: Average Euclidean distance of matched pairs.
Averaging Across Images
- Include all expert images in the F1 average.
- If no points/clusters/matches,
F1 = 0.0anddelta = NaN. avg_F1 = mean(all_F1s)avg_delta = mean(all_deltas excluding NaN)
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.