[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KH981S006XTZCK4TJR82QJ":3,"skill-same:01M6KH981S006XTZCK4TJR82QJ":59},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":37,"commitSha":38,"skillDirectory":39,"forksCount":40,"repositoryHtmlUrl":41,"repositoryHomepageUrl":42,"ownerHtmlUrl":43,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":44,"install":45,"resources":58},"01M6KH981S006XTZCK4TJR82QJ","pareto-frontier-computation",null,"How to compute the Pareto frontier from a set of (F1, delta) optimization results where F1 is maximized and delta is minimized. Includes filtering, dominance checking, and CSV output formatting.","cxcscmu\u002FSkillLearnBench","cxcscmu","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F142838272?v=4","01M6KCQDFQWPDSN0MKZY96MSQP","01M6KCQDM7G70TKJ28NTSQC0RZ",93,"MIT","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fb3-teacher-feedback-claude-sonnet-4-6\u002Fdbscan-parameter-tuning\u002Frun1_pareto-frontier-computation\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31],"pareto frontier","pareto frontier computation","csv","Optimization","SET","how","results","filtering","delta","compute","formatting","how to","output","output formatting","2026-11-10 10:12:30",false,"---\nname: pareto-frontier-computation\ndescription: How to compute the Pareto frontier from a set of (F1, delta) optimization results where F1 is maximized and delta is minimized. Includes filtering, dominance checking, and CSV output formatting.\n---\n\n# Pareto Frontier Computation\n\n## Overview\n\nGiven a set of solutions with multiple objectives, the Pareto frontier contains all non-dominated solutions: a solution is dominated if another solution is at least as good on all objectives and strictly better on at least one.\n\nFor this task:\n- **Maximize F1** (higher is better)\n- **Minimize delta** (lower is better)\n\n## Dominance Definition\n\nSolution A dominates solution B if:\n- `A.F1 >= B.F1` AND `A.delta \u003C= B.delta`\n- AND at least one is strict: `A.F1 > B.F1` OR `A.delta \u003C B.delta`\n\n## Implementation\n\n```python\nimport numpy as np\nimport pandas as pd\n\ndef compute_pareto_frontier(df):\n    \"\"\"\n    df: DataFrame with columns [F1, delta, min_samples, epsilon, shape_weight]\n    \n    Returns: DataFrame of Pareto-optimal rows (non-dominated solutions).\n    \"\"\"\n    # Work with numpy for speed\n    f1 = df['F1'].values\n    delta = df['delta'].values\n    n = len(df)\n    \n    is_pareto = np.ones(n, dtype=bool)\n    \n    for i in range(n):\n        if not is_pareto[i]:\n            continue\n        # Check if solution i is dominated by any other solution j\n        for j in range(n):\n            if i == j or not is_pareto[j]:\n                continue\n            # j dominates i if j is at least as good on all objectives\n            # and strictly better on at least one\n            j_dominates_i = (\n                f1[j] >= f1[i] and delta[j] \u003C= delta[i] and\n                (f1[j] > f1[i] or delta[j] \u003C delta[i])\n            )\n            if j_dominates_i:\n                is_pareto[i] = False\n                break\n    \n    return df[is_pareto].copy()\n\n\ndef compute_pareto_vectorized(df):\n    \"\"\"\n    Vectorized Pareto computation — faster for large result sets.\n    \"\"\"\n    f1 = df['F1'].values\n    delta = df['delta'].values\n    n = len(df)\n    is_pareto = np.ones(n, dtype=bool)\n\n    for i in range(n):\n        if not is_pareto[i]:\n            continue\n        # All other points that are at least as good on both objectives\n        # and strictly better on at least one\n        dominated_by = (\n            (f1 >= f1[i]) & (delta \u003C= delta[i]) &\n            ((f1 > f1[i]) | (delta \u003C delta[i]))\n        )\n        dominated_by[i] = False  # Don't compare to self\n        if dominated_by.any():\n            is_pareto[i] = False\n\n    return df[is_pareto].copy()\n```\n\n## Filtering and Output\n\n```python\ndef filter_and_save_pareto(results, output_path):\n    \"\"\"\n    results: list of dicts with keys [F1, delta, min_samples, epsilon, shape_weight]\n    \"\"\"\n    df = pd.DataFrame(results, columns=['F1', 'delta', 'min_samples', 'epsilon', 'shape_weight'])\n    \n    # Filter: only keep results with average F1 > 0.5\n    df = df[df['F1'] > 0.5].copy()\n    \n    if df.empty:\n        print(\"No solutions with F1 > 0.5 found.\")\n        df.to_csv(output_path, index=False)\n        return df\n    \n    # Compute Pareto frontier\n    pareto = compute_pareto_vectorized(df)\n    \n    # Round outputs\n    pareto['F1'] = pareto['F1'].round(5)\n    pareto['delta'] = pareto['delta'].round(5)\n    pareto['shape_weight'] = pareto['shape_weight'].round(1)\n    pareto['min_samples'] = pareto['min_samples'].astype(int)\n    pareto['epsilon'] = pareto['epsilon'].astype(int)\n    \n    # Sort for readable output (optional but conventional)\n    pareto = pareto.sort_values(['F1', 'delta'], ascending=[False, True])\n    \n    pareto[['F1', 'delta', 'min_samples', 'epsilon', 'shape_weight']].to_csv(\n        output_path, index=False\n    )\n    return pareto\n```\n\n## Notes\n\n- After rounding, multiple parameter combinations may map to identical (F1, delta) points — all should be retained if they were non-dominated before rounding\n- With only two objectives, the Pareto frontier, when sorted by F1 descending, will have delta strictly increasing (otherwise one would dominate another)","# Pareto Frontier Computation\n\n## Overview\n\nGiven a set of solutions with multiple objectives, the Pareto frontier contains all non-dominated solutions: a solution is dominated if another solution is at least as good on all objectives and strictly better on at least one.\n\nFor this task:\n- **Maximize F1** (higher is better)\n- **Minimize delta** (lower is better)\n\n## Dominance Definition\n\nSolution A dominates solution B if:\n- `A.F1 >= B.F1` AND `A.delta \u003C= B.delta`\n- AND at least one is strict: `A.F1 > B.F1` OR `A.delta \u003C B.delta`\n\n## Implementation\n\n```python\nimport numpy as np\nimport pandas as pd\n\ndef compute_pareto_frontier(df):\n    \"\"\"\n    df: DataFrame with columns [F1, delta, min_samples, epsilon, shape_weight]\n    \n    Returns: DataFrame of Pareto-optimal rows (non-dominated solutions).\n    \"\"\"\n    # Work with numpy for speed\n    f1 = df['F1'].values\n    delta = df['delta'].values\n    n = len(df)\n    \n    is_pareto = np.ones(n, dtype=bool)\n    \n    for i in range(n):\n        if not is_pareto[i]:\n            continue\n        # Check if solution i is dominated by any other solution j\n        for j in range(n):\n            if i == j or not is_pareto[j]:\n                continue\n            # j dominates i if j is at least as good on all objectives\n            # and strictly better on at least one\n            j_dominates_i = (\n                f1[j] >= f1[i] and delta[j] \u003C= delta[i] and\n                (f1[j] > f1[i] or delta[j] \u003C delta[i])\n            )\n            if j_dominates_i:\n                is_pareto[i] = False\n                break\n    \n    return df[is_pareto].copy()\n\n\ndef compute_pareto_vectorized(df):\n    \"\"\"\n    Vectorized Pareto computation — faster for large result sets.\n    \"\"\"\n    f1 = df['F1'].values\n    delta = df['delta'].values\n    n = len(df)\n    is_pareto = np.ones(n, dtype=bool)\n\n    for i in range(n):\n        if not is_pareto[i]:\n            continue\n        # All other points that are at least as good on both objectives\n        # and strictly better on at least one\n        dominated_by = (\n            (f1 >= f1[i]) & (delta \u003C= delta[i]) &\n            ((f1 > f1[i]) | (delta \u003C delta[i]))\n        )\n        dominated_by[i] = False  # Don't compare to self\n        if dominated_by.any():\n            is_pareto[i] = False\n\n    return df[is_pareto].copy()\n```\n\n## Filtering and Output\n\n```python\ndef filter_and_save_pareto(results, output_path):\n    \"\"\"\n    results: list of dicts with keys [F1, delta, min_samples, epsilon, shape_weight]\n    \"\"\"\n    df = pd.DataFrame(results, columns=['F1', 'delta', 'min_samples', 'epsilon', 'shape_weight'])\n    \n    # Filter: only keep results with average F1 > 0.5\n    df = df[df['F1'] > 0.5].copy()\n    \n    if df.empty:\n        print(\"No solutions with F1 > 0.5 found.\")\n        df.to_csv(output_path, index=False)\n        return df\n    \n    # Compute Pareto frontier\n    pareto = compute_pareto_vectorized(df)\n    \n    # Round outputs\n    pareto['F1'] = pareto['F1'].round(5)\n    pareto['delta'] = pareto['delta'].round(5)\n    pareto['shape_weight'] = pareto['shape_weight'].round(1)\n    pareto['min_samples'] = pareto['min_samples'].astype(int)\n    pareto['epsilon'] = pareto['epsilon'].astype(int)\n    \n    # Sort for readable output (optional but conventional)\n    pareto = pareto.sort_values(['F1', 'delta'], ascending=[False, True])\n    \n    pareto[['F1', 'delta', 'min_samples', 'epsilon', 'shape_weight']].to_csv(\n        output_path, index=False\n    )\n    return pareto\n```\n\n## Notes\n\n- After rounding, multiple parameter combinations may map to identical (F1, delta) points — all should be retained if they were non-dominated before rounding\n- With only two objectives, the Pareto frontier, when sorted by F1 descending, will have delta strictly increasing (otherwise one would dominate another)",{"name":5,"description":7},"main","726e1f79b96b0cb3d729d0e55a1c847e0b5353ae","skills\u002Fb3-teacher-feedback-claude-sonnet-4-6\u002Fdbscan-parameter-tuning\u002Frun1_pareto-frontier-computation",8,"https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench","https:\u002F\u002Fcxcscmu.github.io\u002FSkillLearnBench","https:\u002F\u002Fgithub.com\u002Fcxcscmu","2026-10-02 22:55:36",{"source":8,"skillName":5,"commands":46,"prompt":56,"zipAvailable":57},[47,50,53],{"tool":48,"command":49},"npx","npx skills add cxcscmu\u002FSkillLearnBench --skill pareto-frontier-computation",{"tool":51,"command":52},"bunx","bunx skills add cxcscmu\u002FSkillLearnBench --skill pareto-frontier-computation",{"tool":54,"command":55},"pnpm","pnpm dlx skills add cxcscmu\u002FSkillLearnBench --skill pareto-frontier-computation","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fb3-teacher-feedback-claude-sonnet-4-6\u002Fdbscan-parameter-tuning\u002Frun1_pareto-frontier-computation\u002FSKILL.md",true,[],[60,78,103,121,140,152],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":71,"publishedAt":32},"01M6KM5KH175P5ABP5JMX2SBDQ","object_counter","Count occurrences of an object in the image using computer vision algorithm.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Fvideo-object-counting\u002Fobject_counter\u002FSKILL.md",[66],{"categoryNo":67,"categoryName":68,"taxonomyType":69,"taxonomyTypeDesc":70},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",[72,73,74,75,76,77],"object counter","object","vision","computer","Computer Vision","image",{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":87,"publishedAt":32},"01M6KM51TMVXG79MMPCS6Y8G86","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.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftravel-planning\u002Ftravel-planning-workflow\u002FSKILL.md",[84],{"categoryNo":85,"categoryName":86,"taxonomyType":69,"taxonomyTypeDesc":70},"01JBSEEDCAT000000000000023","Skill与智能体开发",[88,89,90,91,92,93,94,95,96,97,98,99,100,101,102],"workflow","planning","planning workflow","travel","travel planning","travel planning workflow","structured","performing","plan","for","user","it","requirements","essential","itineraries",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":32},"01M6KM4DY820XHS9YTSK5QP5HD","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.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftravel-planning\u002Fbundled-dataset-search-tool\u002FSKILL.md",[],[110,111,112,113,114,115,116,91,117,118,92,119,97,120,89],"search","tool","dataset","bundled dataset search tool","restaurants","Tools","up","look","flights","you","database",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":32},"01M6KM465BB9PQ0B548HQSVAWZ","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 \u002Froot\u002Fmetrics.json.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-output\u002FSKILL.md",[],[128,30,129,97,130,131,132,133,134,135,136,137,119,138,139],"glm output","glm","tasks","metrics","json","basics","guidance","matching","verifier","processing","root","calibration",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":147,"publishedAt":32},"01M6KM40KY3QWDW5W97S39R2BC","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.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-calibration\u002FSKILL.md",[146],{"categoryNo":85,"categoryName":86,"taxonomyType":69,"taxonomyTypeDesc":70},[148,139,129,30,134,133,130,149,150,97,151],"glm calibration","setup","companion","metric",{"skillNo":153,"name":154,"nameZh":6,"description":155,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":156,"categories":157,"keywords":158,"publishedAt":32},"01M6KM3VHHVSGMGHJQB3PPT6YG","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.","https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fhuman_authored\u002Ftemperature-simulation\u002Fglm-basics\u002FSKILL.md",[],[159,129,133,160,148,139,97,30,161,162,163,164,23,165,130],"glm basics","inspect","relevant","files","good","use","Evaluation"]