agentsclimarketplace

Run2 parallel processing

Skill cxcscmu/SkillLearnBench/skills/b2-self-feedback-gemini-3.1-pro-preview/dbscan-parameter-tuning/run2_parallel-processing

Advanced usage of joblib for parallel execution of grid search tasks, including result flattening.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run2_parallel-processing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.0 KB, 212 tokens by cl100k_base, as published. Nobody here has run it

Parallel Processing with Joblib (Advanced)

When running grid searches where each worker computes multiple results, Joblib returns a list of lists. You can easily flatten this to create a DataFrame.

Installation

Ensure you have joblib and pandas installed: pip install joblib pandas

Usage

import pandas as pd
from joblib import Parallel, delayed
import itertools

def evaluate_subset(param_group):
    # param_group might evaluate multiple things internally
    results = []
    for param in param_group:
        results.append({'param': param, 'score': param * 2})
    return results

param_groups = [[1, 2], [3, 4], [5, 6]]

# Returns list of lists
all_results = Parallel(n_jobs=-1)(
    delayed(evaluate_subset)(group) for group in param_groups
)

# Flatten results
flat_results = [item for sublist in all_results for item in sublist]

# Convert to DataFrame
df = pd.DataFrame(flat_results)

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.