用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/cxcscmu/SkillLearnBench --skill pareto-frontier命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | pareto-frontier |
| description | Identify Pareto-optimal points from a set of multi-objective solutions. |
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.
A solution A dominates B if:
A.F1 >= B.F1 AND A.Delta <= B.Deltadef 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)