本文へスキップ
Skillpedia
機械学習18k · #10690

ml-engineer

できること

このスキルは、PyTorchやscikit-learnでのモデル学習から、評価、本番運用の監視まで、機械学習システムの構築を案内します。モデルを実際の利用につなげるデータサイエンティストやエンジニア向けです。

使う場面

  • ✓機械学習プロジェクトを始め、まず強力でシンプルなベースラインが必要なとき。
  • ✓モデルの評価に適合率、再現率、AUCなどの指標を選ぶ必要があるとき。
  • ✓導入済みのモデルが時間とともにドリフトしたり、精度が落ちたりする可能性があるとき。

スキルのリンク

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/ml-engineer/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/ml-engineer/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“顧客の解約を予測する、シンプルなベースラインモデルを作ってください。その後、当社のような不均衡なデータで重要な指標を教えてください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

このスキルは、強力なベースライン、ビジネス目標に合った指標、バージョン管理されたデータとコード、本番運用後のドリフト監視を推奨します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Machine Learning Engineer

A machine learning practitioner with deep expertise in model development, training infrastructure, evaluation methodology, and production deployment. This skill provides guidance for building ML systems end-to-end using PyTorch for deep learning, scikit-learn for classical ML, and MLOps practices that ensure models are reproducible, monitored, and maintainable in production environments.

Key Principles

  • Start with a strong baseline using simple models and solid feature engineering before reaching for complex architectures; a well-tuned logistic regression often outperforms a poorly configured neural network
  • Evaluate models with metrics that align with business objectives, not just accuracy; precision, recall, F1, and AUC-ROC each tell different stories about model behavior on imbalanced data
  • Version everything: datasets, code, hyperparameters, and model artifacts; reproducibility is the foundation of trustworthy ML systems
  • Design training pipelines to be idempotent and resumable; checkpointing, deterministic seeding, and configuration files enable reliable experimentation
  • Monitor models in production for data drift, prediction drift, and performance degradation; a model that was accurate at deployment time can silently degrade as input distributions shift

Techniques

  • Structure PyTorch training with a clear pattern: define nn.Module subclass, configure DataLoader with proper num_workers and pin_memory, implement the training loop with optimizer.zero_grad(), loss.backward(), and optimizer.step()
  • Build scikit-learn pipelines with Pipeline and ColumnTransformer to chain preprocessing (scaling, encoding, imputation) with model fitting, ensuring that all transformations are fit on training data only
  • Perform hyperparameter tuning with GridSearchCV or RandomizedSearchCV using cross-validation; for expensive models, use Optuna or Bayesian optimization to search efficiently
  • Compute evaluation metrics on held-out test sets: classification_report for precision/recall/F1 per class, roc_auc_score for ranking quality, and confusion_matrix for error analysis
  • Engineer features systematically: log transforms for skewed distributions, interaction terms for feature combinations, target encoding for high-cardinality categoricals, and temporal features for time-series data
  • Track experiments with MLflow or Weights and Biases: log hyperparameters, metrics, artifacts, and model versions for every run

Common Patterns

  • Train-Validate-Test Split: Use stratified splitting (80/10/10) to maintain class distribution; never touch the test set during development, only for final evaluation
  • Learning Rate Schedule: Use warmup followed by cosine annealing or reduce-on-plateau for training stability; sudden large learning rates cause divergence in deep networks
  • Ensemble Methods: Combine predictions from diverse models (gradient boosting + neural network + linear model) to improve robustness and reduce variance
  • Model Registry: Promote models through stages (staging, production, archived) in MLflow Model Registry with approval gates and automated validation checks

Pitfalls to Avoid

  • Do not evaluate on the training set or leak test data into preprocessing; this produces overly optimistic metrics that do not reflect real-world performance
  • Do not train models without understanding the data: check for class imbalance, missing values, duplicates, and label noise before building any model
  • Do not deploy models without a rollback plan; maintain the previous model version in production so you can revert quickly if the new model underperforms
  • Do not treat feature engineering as a one-time task; as the domain evolves and new data sources become available, revisit and expand the feature set regularly
よくある質問

なぜシンプルなモデルから始めるのですか?

適切に調整されたシンプルなモデルは、設定の悪い複雑なモデルより良い結果を出すことが多く、公平な基準にもなるからです。

正解率だけでは不十分なのはなぜですか?

不均衡なデータでは、適合率、再現率、F1、AUCがそれぞれモデルの挙動の異なる面を示すためです。

ドリフトとは何ですか?

入力データが時間とともに変化し、正確だったモデルが徐々に精度を落とす現象です。

詳細

作者による元の説明

Machine learning engineer expert for PyTorch, scikit-learn, model evaluation, and MLOps

repo: RightNow-AI/openfang

人気

GitHubのスター
18k
ランキング
#10690
ライセンス
Apache-2.0
更新日
2026/7/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル