Run2 parallel orchestration
Structured approach to grid search with nested loops and parallelization.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_parallel-orchestrationAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
1.2 KB, 246 tokens by cl100k_base, as published. Nobody here has run it
Parallel Orchestration for Hyperparameter Search
A structured way to iterate through multiple hyperparameters while optimizing for performance.
Strategy
- Loop through
shape_weight(most expensive since it changes the distance metric). - For each
shape_weight, precompute distance matrices for all images. - Parallelize the evaluation of
min_samplesandepsilonfor thatshape_weight.
from joblib import Parallel, delayed
def process_weight(w, citsci_groups, expert_groups, all_images, ms_range, eps_range):
# Precompute dist matrices
dist_matrices = {img: precompute_distances(citsci_groups[img], w)
for img in citsci_groups if img in expert_groups}
results = []
for ms in ms_range:
for eps in eps_range:
f1s, deltas = [], []
for img in all_images:
# ... evaluation logic ...
f1s.append(f1)
if not np.isnan(delta): deltas.append(delta)
results.append({'F1': np.mean(f1s), 'delta': np.mean(deltas), ...})
return results
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.