Communitygithub.com

SamuelChien/mega-skills-collection

此技能會自動化使用遷移學習技術來調整預先訓練的機器學習模型。當使用者要求微調模型、將預訓練模型適應到新的資料集或執行相關操作時,即會觸發此技能。請在偵測到適當情境時使用。根據技能目的,使用相關短語觸發。

mega-skills-collection 是什麼?

此技能旨在簡化遷移學習的流程,讓開發者能夠高效地將預先訓練的模型(如 ResNet、BERT、GPT)適應到新的任務和資料集上。透過自動化微調、層凍結及領域特定最佳化等步驟,它顯著節省了從頭訓練模型的時間與計算資源。技能會分析使用者需求,自動生成包含資料預處理、模型架構修改與錯誤處理的 Python 程式碼(支援 TensorFlow 或 PyTorch 等框架),並在訓練後提供準確率、精確率、召回率與 F1 分數等關鍵績效指標,最後保存模型、訓練日誌與自動化文件。此技能可與資料載入、模型評估及部署等外掛整合,適用於影像分類、情感分析等典型應用場景,也遵循資料正規化、超參數調整與正則化等最佳實務。

相容平台✓Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/SamuelChien/mega-skills-collection/tree/HEAD/adapting-transfer-learning-models

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

遷移學習適配器

透過微調、層凍結與領域特定最佳化,將預先訓練的模型(ResNet、BERT、GPT)適應到新的任務和資料集。

概述

此技能簡化了透過遷移學習來調整預先訓練機器學習模型的流程。它能讓您針對特定任務快速微調模型,比起從頭訓練,節省了時間與資源。此技能處理了模型適應、資料驗證與效能最佳化的複雜性。

工作原理

  1. 分析需求:檢視使用者的請求,以了解目標任務、資料集特徵及期望的效能指標。
  2. 生成適應程式碼:使用適當的機器學習框架(例如 TensorFlow、PyTorch)建立 Python 程式碼,在新的資料集上微調預先訓練的模型。這包括資料預處理步驟,以及必要時的模型架構修改。
  3. 實作驗證與錯誤處理:新增程式碼以驗證資料、監控訓練過程,並優雅地處理潛在錯誤。
  4. 提供效能指標:計算並回報關鍵績效指標(KPI),例如準確率、精確率、召回率與 F1 分數,以評估模型的有效性。
  5. 儲存產出與文件:儲存適配後的模型、訓練日誌、效能指標,並自動產生說明適應過程與結果的文件。

何時使用此技能

當您需要以下操作時,此技能會啟動:

  • 為特定任務微調預先訓練的模型。
  • 將預先訓練的模型適應到新的資料集。
  • 執行遷移學習以改善模型效能。
  • 為特定應用最佳化現有的模型。

範例

範例 1:調整視覺模型以進行影像分類

使用者請求:"微調一個 ResNet50 模型,使其能夠分類不同類型的花朵影像。"

此技能將會:

  1. 下載 ResNet50 模型並載入花卉影像資料集。
  2. 生成用於在花卉資料集上微調模型的程式碼,包括資料增強與最佳化技術。

範例 2:調整語言模型以進行情感分析

使用者請求:"調整一個 BERT 模型,使其能夠對客戶評論進行情感分析。"

此技能將會:

  1. 下載 BERT 模型並載入帶有情感標籤的客戶評論資料集。
  2. 生成用於在評論資料集上微調模型的程式碼,包括詞元化、填充與注意力機制。

最佳實務

  • 資料預處理:確保資料經過適當的預處理與格式化,以符合預先訓練模型的輸入要求。
  • 超參數調整:嘗試不同的超參數(例如學習率、批次大小),以最佳化模型效能。
  • 正則化:應用正則化技術(例如隨機丟棄、權重衰減),以防止過度擬合。

整合

此技能可以與其他外掛整合,用於資料載入、模型評估與部署。例如,它可以與資料載入外掛協作以擷取資料集,並與模型部署外掛協作以將適配後的模型部署到服務基礎設施。

先決條件

  • 適當的檔案存取權限
  • 已安裝必要的依賴項

指示

  1. 在觸發條件滿足時,叫用此技能
  2. 提供必要的上下文和參數
  3. 檢視生成的輸出
  4. 根據需要套用修改

輸出

此技能會產生與任務相關的結構化輸出。

錯誤處理

  • 無效輸入:提示進行更正
  • 缺少依賴項:列出必要的元件
  • 權限錯誤:建議修正步驟

資源

  • 專案文件
  • 相關技能與命令

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

SamuelChien/mega-skills-collection

Security audit, hardening, threat modeling (STRIDE/PASTA), Red/Blue Team, OWASP checks, code review, incident response, and infrastructure security for any project.

SamuelChien/mega-skills-collection

Arquitecto de Soluciones Principal y Consultor Tecnológico de Andru.ia. Diagnostica y traza la hoja de ruta óptima para proyectos de IA en español.

SamuelChien/mega-skills-collection

Ingeniero de Sistemas de Andru.ia. Diseña, redacta y despliega nuevas habilidades (skills) dentro del repositorio siguiendo el Estándar de Diamante.

SamuelChien/mega-skills-collection

Estratega de Inteligencia de Dominio de Andru.ia. Analiza el nicho específico de un proyecto para inyectar conocimientos, regulaciones y estándares únicos del sector. Actívalo tras definir el nicho.

SamuelChien/mega-skills-collection

2D game development principles. Sprites, tilemaps, physics, camera.

SamuelChien/mega-skills-collection

3D game development principles. Rendering, shaders, physics, cameras.

SamuelChien/mega-skills-collection

Expert in building 3D experiences for the web - Three.js, React Three Fiber, Spline, WebGL, and interactive 3D scenes. Covers product configurators, 3D portfolios, immersive websites, and bringing depth to web experiences.

SamuelChien/mega-skills-collection

Accessibility audit skill for scanning, fixing, and verifying WCAG 2.2 Level A and AA compliance across React, Next.js, Vue, Angular, Svelte, and plain HTML codebases. Use when auditing accessibility, fixing a11y violations, checking color contrast, generating compliance reports, or integrating accessibility checks into CI/CD pipelines.

SamuelChien/mega-skills-collection

Ab Test Analyzer - Auto-activating skill for Data Analytics. Triggers on: ab test analyzer, ab test analyzer Part of the Data Analytics skill category.

SamuelChien/mega-skills-collection

A B Test Config Creator - Auto-activating skill for ML Deployment. Triggers on: a b test config creator, a b test config creator Part of the ML Deployment skill category.

SamuelChien/mega-skills-collection

When the user wants to plan, design, or implement an A/B test or experiment. Also use when the user mentions "A/B test," "split test," "experiment," "test this change," "variant copy," "multivariate test," "hypothesis," "conversion experiment," "statistical significance," or "test this." For tracking implementation, see analytics-tracking.

SamuelChien/mega-skills-collection

Acceptance Criteria Creator - Auto-activating skill for Enterprise Workflows. Triggers on: acceptance criteria creator, acceptance criteria creator Part of the Enterprise Workflows skill category.

SamuelChien/mega-skills-collection

Use when a coding task should be driven end-to-end from issue intake through implementation, review, deployment, and acceptance verification with minimal human re-intervention.

SamuelChien/mega-skills-collection

Accessibility Audit Runner - Auto-activating skill for Frontend Development. Triggers on: accessibility audit runner, accessibility audit runner Part of the Frontend Development skill category.

SamuelChien/mega-skills-collection

You are an accessibility expert specializing in WCAG compliance, inclusive design, and assistive technology compatibility. Conduct audits, identify barriers, and provide remediation guidance.

SamuelChien/mega-skills-collection

Web accessibility patterns for WCAG 2.2 compliance including ARIA, keyboard navigation, screen readers, and testing

SamuelChien/mega-skills-collection

Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed, or change policy for the Discord channel.

SamuelChien/mega-skills-collection

Create unified specification packages across Business, Development, and Design teams. Staged elaboration (L0 Vision → L1 Requirements → L2 Team Detail → L3 Acceptance Criteria) to build shared understanding. Does not write code.

SamuelChien/mega-skills-collection

Research a company or person and get actionable sales intel. Works standalone with web search, supercharged when you connect enrichment tools or your CRM. Trigger with "research [company]", "look up [person]", "intel on [prospect]", "who is [name] at [company]", or "tell me about [company]".

SamuelChien/mega-skills-collection

Validate messaging consistency across website, GitHub repos, and local documentation generating read-only discrepancy reports. Use when checking content alignment or finding mixed messaging. Trigger with phrases like "check consistency", "validate documentation", or "audit messaging".

相關技能