pareto-frontier
Identify Pareto-optimal points from a set of multi-objective solutions.
- License 许可
- MIT
- 最近更新
- 2026-10-02
- Stars
- ★ 93
- Forks
- 8
01 前言 Front Matter
- name
- pareto-frontier
- description
- Identify Pareto-optimal points from a set of multi-objective solutions.
03 SKILL.md 正文
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:
A.F1 >= B.F1ANDA.Delta <= B.Delta- 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)
04 同仓库更多 Skills
object_counter
Count occurrences of an object in the image using computer vision algorithm.
travel-planning-workflow
Invoke this skill when performing travel planning. It defines a structured workflow for generating itineraries. Following this workflow is essential to ensure the final plan satisfies user requirements.
bundled-dataset-search-tool
invoke this skill when you need to perform database search for travel planning. This skill provides some useful pre-packaged tools to look up accommodations, attractions, cities, driving distance, flights, and restaurants from the bundled dataset.
glm-output
Output-processing guidance for GLM tasks. Especially useful after glm-basics and glm-calibration when you need verifier-matching metrics from output.nc and a final /root/metrics.json.
glm-calibration
Calibration guidance for GLM tasks. Often most effective after glm-basics has clarified the setup; glm-output is the companion skill for exact final metric computation.
glm-basics
A good starting point for GLM calibration tasks. Use to inspect glm3.nml, confirm how GLM runs, and identify the relevant files before moving on to calibration and output evaluation.