[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KFC4W9SZHZTSNPMEN73QBH":3,"skill-same:01M6KFC4W9SZHZTSNPMEN73QBH":58},{"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":31,"linkOnly":32,"markdownContent":33,"markdownBody":34,"frontMatter":35,"refName":36,"commitSha":37,"skillDirectory":38,"forksCount":39,"repositoryHtmlUrl":40,"repositoryHomepageUrl":41,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M6KFC4W9SZHZTSNPMEN73QBH","run2_parameter-optimization-strategy",null,"Systematic parameter search strategies for GLM calibration with multiple metrics","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\u002Fb2-self-feedback-claude-haiku-4-5\u002Ftemperature-simulation\u002Frun2_parameter-optimization-strategy\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30],"Optimization","strategy","parameter optimization","run2 parameter optimization strategy","metrics","search","strategies","systematic","glm","with","for","calibration","glm calibration","2026-11-10 10:12:30",false,"---\nname: run2_parameter-optimization-strategy\ndescription: Systematic parameter search strategies for GLM calibration with multiple metrics\n---\n\n# Parameter Optimization Strategy for GLM\n\n## Challenge\nGLM has 5 calibration parameters to optimize across 3 RMSE metrics with tight thresholds:\n- overall_rmse \u003C 1.60\n- annual_deep_rmse \u003C 1.55 (depth ≥13m)\n- summer_deep_rmse \u003C 1.70 (Jun-Sep, depth ≥13m)\n\nBrute force grid search becomes expensive quickly (10^5 combinations at 5-10 minutes each).\n\n## Optimization Strategy\n\n### Phase 1: Diagnosis\n\nBefore optimization, run one baseline simulation and diagnose:\n\n```python\ndef diagnose_baseline():\n    \"\"\"Identify which metrics fail and by how much\"\"\"\n    metrics = compute_metrics()\n\n    failures = {}\n    for key, threshold in THRESHOLDS.items():\n        if metrics[key] >= threshold:\n            gap = metrics[key] - threshold\n            failures[key] = gap\n\n    return metrics, failures\n\n# Example diagnosis:\n# overall_rmse: 7.421 (gap: +5.821)\n# annual_deep_rmse: 8.022 (gap: +6.472)  ← Largest error\n# summer_deep_rmse: 10.949 (gap: +9.249) ← Worst metric\n```\n\n### Phase 2: Domain Knowledge Application\n\nBefore systematic search, use physical reasoning:\n\n#### Temperature Profile Issues\n\nIf all metrics show overestimation of temperatures (sim > obs):\n- **Increase heat loss**: Raise `ch` (sensible heat transfer)\n- **Reduce heating**: Lower `lw_factor` (longwave radiation)\n- **Reduce light penetration**: Lower `Kw` (more opaque water)\n\nIf simulation shows stratification issues:\n- **Reduce mixing**: Lower `coef_mix_hyp` (less hypolimnetic mixing)\n- **Increase mixing**: Raise `coef_mix_hyp` (more mixing)\n- **Adjust wind effect**: Modify `wind_factor`\n\n#### Deep Water Specifics\n\nIf annual_deep_rmse >> overall_rmse:\n- Problem is concentrated in deep water (>13m)\n- Likely: Deep water stratification or mixing is wrong\n- Adjust: `coef_mix_hyp` primarily, possibly `Kw`\n\nIf summer_deep_rmse is worst:\n- Summer stratification is wrong\n- Likely: `wind_factor` or `coef_mix_hyp` issues\n- Adjust: Focus on stability\u002Fmixing parameters\n\n### Phase 3: Focused Grid Search\n\nDon't search all 5 parameters simultaneously. Use sequential focusing:\n\n#### Tier 1: Most Impactful Parameters\nStart with 2-3 parameters showing largest physical effects:\n\n```python\n# Example: Cooling-focused search\ntest_configs = []\nfor ch in [0.0015, 0.0017, 0.0019, 0.002]:           # Heat loss\n    for lw_factor in [0.7, 0.85, 1.0]:               # Atmospheric heating\n        for kw in [0.1, 0.2, 0.3]:                   # Light penetration\n            # Keep other parameters at baseline\n            test_configs.append({\n                ('meteorology', 'ch'): ch,\n                ('meteorology', 'lw_factor'): lw_factor,\n                ('light', 'Kw'): kw,\n                ('mixing', 'coef_mix_hyp'): 0.5,      # Default\n                ('meteorology', 'wind_factor'): 1.0   # Default\n            })\n# Total: 4 × 3 × 3 = 36 tests\n```\n\n#### Tier 2: Secondary Parameters\nOnce best Tier 1 parameters identified, optimize secondary:\n\n```python\n# Keep best from Tier 1, vary mixing and wind\nbest_ch = 0.0019\nbest_lw = 0.85\nbest_kw = 0.2\n\nfor coef_mix_hyp in [0.3, 0.4, 0.5, 0.6, 0.7]:\n    for wind_factor in [0.8, 0.9, 1.0, 1.1, 1.2]:\n        test_configs.append({\n            ('meteorology', 'ch'): best_ch,\n            ('meteorology', 'lw_factor'): best_lw,\n            ('light', 'Kw'): best_kw,\n            ('mixing', 'coef_mix_hyp'): coef_mix_hyp,\n            ('meteorology', 'wind_factor'): wind_factor\n        })\n# Total: 5 × 5 = 25 tests\n```\n\n### Phase 4: Sensitivity Analysis\n\nIdentify parameters most affecting each metric:\n\n```python\ndef compute_sensitivity(baseline_params, param_to_vary, values):\n    \"\"\"Test parameter range, return sensitivity\"\"\"\n\n    rmse_results = {name: [] for name in ['overall', 'annual_deep', 'summer_deep']}\n\n    for value in values:\n        test_params = baseline_params.copy()\n        test_params[param_to_vary] = value\n\n        metrics = test_parameter_set(test_params)\n        rmse_results['overall'].append(metrics['overall_rmse'])\n        rmse_results['annual_deep'].append(metrics['annual_deep_rmse'])\n        rmse_results['summer_deep'].append(metrics['summer_deep_rmse'])\n\n    # Compute sensitivity (change in RMSE \u002F change in parameter)\n    return rmse_results\n```\n\n## Metric-Specific Optimization\n\n### Reduce overall_rmse\nFocus on: `Kw`, `lw_factor`, `ch` (temperature regulation)\n\n### Reduce annual_deep_rmse\nFocus on: `coef_mix_hyp` (deep water mixing), `Kw`\n\n### Reduce summer_deep_rmse\nFocus on: `coef_mix_hyp`, `wind_factor` (stratification in warm season)\n\n## Practical Workflow\n\n```python\ndef optimize():\n    print(\"1. Baseline diagnosis...\")\n    metrics, failures = diagnose_baseline()\n\n    if all(m \u003C t for m, t in zip(metrics.values(), THRESHOLDS.values())):\n        print(\"✓ All metrics already meet thresholds!\")\n        return metrics\n\n    print(f\"\\n2. Identifying main issues...\")\n    if failures['summer_deep_rmse'] > 5:  # Large error\n        print(\"   Focus: summer stratification and deep mixing\")\n        # Run Tier 1 with coef_mix_hyp, wind_factor emphasis\n\n    print(f\"\\n3. Running focused grid search...\")\n    best_metrics = run_tier1_optimization()\n\n    print(f\"\\n4. Refining with Tier 2...\")\n    final_metrics = run_tier2_optimization(best_metrics)\n\n    return final_metrics\n```\n\n## Success Criteria\n\nStop optimization when:\n- All three RMSE metrics below thresholds, OR\n- No improvement after 50+ tests with top parameters tried multiple ways, OR\n- Resource limits reached\n\n## Parameter Interaction Effects\n\nSome parameter combinations interact:\n- `ch` × `lw_factor`: Both affect surface heat balance\n- `coef_mix_hyp` × `wind_factor`: Both affect stratification strength\n- `Kw` × `coef_mix_hyp`: Light penetration affects density gradients, which interact with mixing\n\nConsider this when choosing next test after each tier.\n","# Parameter Optimization Strategy for GLM\n\n## Challenge\nGLM has 5 calibration parameters to optimize across 3 RMSE metrics with tight thresholds:\n- overall_rmse \u003C 1.60\n- annual_deep_rmse \u003C 1.55 (depth ≥13m)\n- summer_deep_rmse \u003C 1.70 (Jun-Sep, depth ≥13m)\n\nBrute force grid search becomes expensive quickly (10^5 combinations at 5-10 minutes each).\n\n## Optimization Strategy\n\n### Phase 1: Diagnosis\n\nBefore optimization, run one baseline simulation and diagnose:\n\n```python\ndef diagnose_baseline():\n    \"\"\"Identify which metrics fail and by how much\"\"\"\n    metrics = compute_metrics()\n\n    failures = {}\n    for key, threshold in THRESHOLDS.items():\n        if metrics[key] >= threshold:\n            gap = metrics[key] - threshold\n            failures[key] = gap\n\n    return metrics, failures\n\n# Example diagnosis:\n# overall_rmse: 7.421 (gap: +5.821)\n# annual_deep_rmse: 8.022 (gap: +6.472)  ← Largest error\n# summer_deep_rmse: 10.949 (gap: +9.249) ← Worst metric\n```\n\n### Phase 2: Domain Knowledge Application\n\nBefore systematic search, use physical reasoning:\n\n#### Temperature Profile Issues\n\nIf all metrics show overestimation of temperatures (sim > obs):\n- **Increase heat loss**: Raise `ch` (sensible heat transfer)\n- **Reduce heating**: Lower `lw_factor` (longwave radiation)\n- **Reduce light penetration**: Lower `Kw` (more opaque water)\n\nIf simulation shows stratification issues:\n- **Reduce mixing**: Lower `coef_mix_hyp` (less hypolimnetic mixing)\n- **Increase mixing**: Raise `coef_mix_hyp` (more mixing)\n- **Adjust wind effect**: Modify `wind_factor`\n\n#### Deep Water Specifics\n\nIf annual_deep_rmse >> overall_rmse:\n- Problem is concentrated in deep water (>13m)\n- Likely: Deep water stratification or mixing is wrong\n- Adjust: `coef_mix_hyp` primarily, possibly `Kw`\n\nIf summer_deep_rmse is worst:\n- Summer stratification is wrong\n- Likely: `wind_factor` or `coef_mix_hyp` issues\n- Adjust: Focus on stability\u002Fmixing parameters\n\n### Phase 3: Focused Grid Search\n\nDon't search all 5 parameters simultaneously. Use sequential focusing:\n\n#### Tier 1: Most Impactful Parameters\nStart with 2-3 parameters showing largest physical effects:\n\n```python\n# Example: Cooling-focused search\ntest_configs = []\nfor ch in [0.0015, 0.0017, 0.0019, 0.002]:           # Heat loss\n    for lw_factor in [0.7, 0.85, 1.0]:               # Atmospheric heating\n        for kw in [0.1, 0.2, 0.3]:                   # Light penetration\n            # Keep other parameters at baseline\n            test_configs.append({\n                ('meteorology', 'ch'): ch,\n                ('meteorology', 'lw_factor'): lw_factor,\n                ('light', 'Kw'): kw,\n                ('mixing', 'coef_mix_hyp'): 0.5,      # Default\n                ('meteorology', 'wind_factor'): 1.0   # Default\n            })\n# Total: 4 × 3 × 3 = 36 tests\n```\n\n#### Tier 2: Secondary Parameters\nOnce best Tier 1 parameters identified, optimize secondary:\n\n```python\n# Keep best from Tier 1, vary mixing and wind\nbest_ch = 0.0019\nbest_lw = 0.85\nbest_kw = 0.2\n\nfor coef_mix_hyp in [0.3, 0.4, 0.5, 0.6, 0.7]:\n    for wind_factor in [0.8, 0.9, 1.0, 1.1, 1.2]:\n        test_configs.append({\n            ('meteorology', 'ch'): best_ch,\n            ('meteorology', 'lw_factor'): best_lw,\n            ('light', 'Kw'): best_kw,\n            ('mixing', 'coef_mix_hyp'): coef_mix_hyp,\n            ('meteorology', 'wind_factor'): wind_factor\n        })\n# Total: 5 × 5 = 25 tests\n```\n\n### Phase 4: Sensitivity Analysis\n\nIdentify parameters most affecting each metric:\n\n```python\ndef compute_sensitivity(baseline_params, param_to_vary, values):\n    \"\"\"Test parameter range, return sensitivity\"\"\"\n\n    rmse_results = {name: [] for name in ['overall', 'annual_deep', 'summer_deep']}\n\n    for value in values:\n        test_params = baseline_params.copy()\n        test_params[param_to_vary] = value\n\n        metrics = test_parameter_set(test_params)\n        rmse_results['overall'].append(metrics['overall_rmse'])\n        rmse_results['annual_deep'].append(metrics['annual_deep_rmse'])\n        rmse_results['summer_deep'].append(metrics['summer_deep_rmse'])\n\n    # Compute sensitivity (change in RMSE \u002F change in parameter)\n    return rmse_results\n```\n\n## Metric-Specific Optimization\n\n### Reduce overall_rmse\nFocus on: `Kw`, `lw_factor`, `ch` (temperature regulation)\n\n### Reduce annual_deep_rmse\nFocus on: `coef_mix_hyp` (deep water mixing), `Kw`\n\n### Reduce summer_deep_rmse\nFocus on: `coef_mix_hyp`, `wind_factor` (stratification in warm season)\n\n## Practical Workflow\n\n```python\ndef optimize():\n    print(\"1. Baseline diagnosis...\")\n    metrics, failures = diagnose_baseline()\n\n    if all(m \u003C t for m, t in zip(metrics.values(), THRESHOLDS.values())):\n        print(\"✓ All metrics already meet thresholds!\")\n        return metrics\n\n    print(f\"\\n2. Identifying main issues...\")\n    if failures['summer_deep_rmse'] > 5:  # Large error\n        print(\"   Focus: summer stratification and deep mixing\")\n        # Run Tier 1 with coef_mix_hyp, wind_factor emphasis\n\n    print(f\"\\n3. Running focused grid search...\")\n    best_metrics = run_tier1_optimization()\n\n    print(f\"\\n4. Refining with Tier 2...\")\n    final_metrics = run_tier2_optimization(best_metrics)\n\n    return final_metrics\n```\n\n## Success Criteria\n\nStop optimization when:\n- All three RMSE metrics below thresholds, OR\n- No improvement after 50+ tests with top parameters tried multiple ways, OR\n- Resource limits reached\n\n## Parameter Interaction Effects\n\nSome parameter combinations interact:\n- `ch` × `lw_factor`: Both affect surface heat balance\n- `coef_mix_hyp` × `wind_factor`: Both affect stratification strength\n- `Kw` × `coef_mix_hyp`: Light penetration affects density gradients, which interact with mixing\n\nConsider this when choosing next test after each tier.\n",{"name":5,"description":7},"main","726e1f79b96b0cb3d729d0e55a1c847e0b5353ae","skills\u002Fb2-self-feedback-claude-haiku-4-5\u002Ftemperature-simulation\u002Frun2_parameter-optimization-strategy",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":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add cxcscmu\u002FSkillLearnBench --skill run2_parameter-optimization-strategy",{"tool":50,"command":51},"bunx","bunx skills add cxcscmu\u002FSkillLearnBench --skill run2_parameter-optimization-strategy",{"tool":53,"command":54},"pnpm","pnpm dlx skills add cxcscmu\u002FSkillLearnBench --skill run2_parameter-optimization-strategy","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcxcscmu\u002FSkillLearnBench\u002Fblob\u002Fmain\u002Fskills\u002Fb2-self-feedback-claude-haiku-4-5\u002Ftemperature-simulation\u002Frun2_parameter-optimization-strategy\u002FSKILL.md",true,[],[59,72,93,110,127,137],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":31},"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,67,68,69,70,71],"object counter","object","vision","computer","Computer Vision","image",{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":31},"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",[],[79,80,81,82,83,84,85,86,87,28,88,89,90,91,92],"workflow","planning","planning workflow","travel","travel planning","travel planning workflow","structured","performing","plan","user","it","requirements","essential","itineraries",{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":31},"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",[],[23,100,101,102,103,104,105,82,106,107,83,108,28,109,80],"tool","dataset","bundled dataset search tool","restaurants","Tools","up","look","flights","you","database",{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":31},"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",[],[117,118,26,28,119,22,120,121,122,123,124,125,108,126,29],"glm output","output","tasks","json","basics","guidance","matching","verifier","processing","root",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":31},"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",[],[30,29,26,118,122,121,119,134,135,28,136],"setup","companion","metric",{"skillNo":138,"name":139,"nameZh":6,"description":140,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":143,"publishedAt":31},"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",[],[144,26,121,145,30,29,28,118,146,147,148,149,150,151,119],"glm basics","inspect","relevant","files","good","use","how","Evaluation"]