Communitygithub.com

トランスファーラーニングアダプター

事前学習済みモデル(ResNet、BERT、GPTなど)を新しいタスクやデータセットに適応させるためのスキルです。ファインチューニング、層の凍結、ドメイン固有の最適化を自動化します。

トランスファーラーニングアダプター とは?

このスキルは、転移学習を用いて事前学習済み機械学習モデルを新しいタスクやデータセットに適応させるプロセスを自動化します。ユーザーの要求を分析し、ターゲットタスク、データセットの特性、希望するパフォーマンス指標に基づいて、TensorFlowやPyTorchなどのフレームワークを使用したPythonコードを生成します。データの前処理、モデルアーキテクチャの変更、バリデーション、エラーハンドリング、パフォーマンス指標(精度、適合率、再現率、F1スコア)の計算とレポート、適応済みモデルやドキュメントの保存までを一貫して行います。これにより、手動でのモデル適応にかかる時間とリソースを大幅に削減し、画像分類や感情分析などのタスクに対して迅速に高品質なモデルを提供します。

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

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

トランスファーラーニングアダプター は何をしますか?

事前学習済みモデル(ResNet、BERT、GPT)を新しいタスクやデータセットに適応させるためのスキル。ファインチューニング、層の凍結、ドメイン固有の最適化を行います。

概要

このスキルは、転移学習を用いて事前学習済み機械学習モデルを適応させるプロセスを効率化します。特定のタスク向けにモデルを迅速にファインチューニングできるため、スクラッチからトレーニングする場合と比較して、時間とリソースを節約できます。モデル適応、データバリデーション、パフォーマンス最適化の複雑さを処理します。

仕組み

  1. 要件分析: ユーザーのリクエストを解析し、ターゲットタスク、データセットの特性、希望するパフォーマンス指標を理解します。
  2. 適応コードの生成: 適切なMLフレームワーク(例:TensorFlow、PyTorch)を使用して、新しいデータセットで事前学習済みモデルをファインチューニングするPythonコードを作成します。これには、データ前処理手順や必要に応じたモデルアーキテクチャの変更が含まれます。
  3. バリデーションとエラーハンドリングの実装: データを検証し、トレーニングプロセスを監視し、潜在的なエラーを適切に処理するコードを追加します。
  4. パフォーマンス指標の提供: モデルの有効性を評価するために、精度、適合率、再現率、F1スコアなどの主要業績評価指標(KPI)を計算し、レポートします。
  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".

関連スキル