agentsclimarketplace

Pareto frontier

Skill cxcscmu/SkillLearnBench/skills/b1-one-shot-gemini-3-flash-preview/dbscan-parameter-tuning/pareto-frontier

Identify Pareto-optimal points from a set of multi-objective solutions.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill pareto-frontier

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

SKILL.md

1.3 KB, 324 tokens by cl100k_base, as published. Nobody here has run it

Pareto Frontier Identification

A point is Pareto-optimal if no other point is better in all objectives. For this task, we want to maximize F1 and minimize Delta.

Logic

A solution A dominates B if:

  1. A.F1 >= B.F1 AND A.Delta <= B.Delta
  2. At least one inequality is strict.

Python Implementation

def is_pareto_efficient(costs):
    """
    Find the pareto-efficient points
    :param costs: An (n_points, n_costs) array where costs are to be MINIMIZED.
    :return: A boolean array of length n_points indicating efficiency.
    """
    is_efficient = np.ones(costs.shape[0], dtype=bool)
    for i, c in enumerate(costs):
        if is_efficient[i]:
            # Keep any point that is better than 'c' in at least one attribute
            # OR equal in all attributes (to handle duplicates)
            is_efficient[is_efficient] = np.any(costs[is_efficient] < c, axis=1) | \
                                          np.all(costs[is_efficient] == c, axis=1)
            is_efficient[i] = True  # And keep self
    return is_efficient

# For Max F1 and Min Delta, transform F1:
# costs = np.array([[-f1, delta] for f1, delta in results])
# efficient_mask = is_pareto_efficient(costs)

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.