Mars clouds clustering

From XuShuwenn/RedAct · View interactive version

Mars clouds clustering is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Optimize DBSCAN hyperparameters to find Pareto frontier of F1 score and centroid delta for Mars cloud annotations.

How to use this skill

Skill file

Mars Cloud Clustering with DBSCAN

When to Use

Input Data

Before coding, inspect the real CSV headers and sample rows from both files. If the files do not literally contain file_rad, x, and y, reconcile the actual schema first (for example, determine which column identifies the image and whether coordinates need renaming or extraction) before implementing clustering logic. If any logic depends on filename/path structure in file_rad, derive it from observed sample rows rather than assumptions.

Hyperparameter Search

Grid search over:

Before launching the full 847-combination sweep, run a small timing check on a few combinations. If runtime looks poor, restructure first rather than starting a long unattended run.

Custom Distance Metric

DBSCAN uses:

d(a,b) = sqrt((w*Δx)² + ((2-w)*Δy)²)

Implementation guidance:

Evaluation Per Combination

  1. Run DBSCAN on citizen science points per image
  2. Match clusters to expert annotations (greedy, max 100px)
  3. Compute F1 and average delta (Euclidean distance)
  4. Only keep results with F1 > 0.5

Additional required rules:

Validate the implementation against the spec before trusting results:

Output

/root/pareto_frontier.csv:

F1,delta,min_samples,epsilon,shape_weight

Before declaring completion, verify /root/pareto_frontier.csv was actually written, is non-empty, and is specification-compliant:

New Section

Execution Discipline

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.