360 Secure SkillHub
360 安全技能中心

MLOps Prototyping CN

该 Skill 提供一个 shell 检查脚本,用于校验 Jupyter notebook 是否包含 H1 标题、导入、配置常量、数据加载和 Pipeline 使用等结构;同时给出包含标题、导入、配置、数据、分析、建模、评估的模板,以及参数集中、使用 sklearn Pipeline、先切分数据、设置随机种子等规范要点。

guohongbin-git
guohongbin-git
热度 66.45
最近更新 2026-05-18 12:04:48
分类:开发依赖:代码执行 / 读写文件应用场景:代码生成 / 数据处理 / 模板 / 工作流 ...

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add mlops-prototyping-cn
Metadata
name
mlops-prototyping-cn
version
1.0.0
description
Structured Jupyter notebook prototyping with pipeline integrity
license
MIT

MLOps Prototyping 🔬

Create standardized, reproducible Jupyter notebooks.

Features

1. Notebook Structure Check ✅

Validate notebook follows best practices:

./scripts/check-notebook.sh notebook.ipynb

Checks for:

  • H1 title
  • Imports section
  • Config/Constants
  • Data loading
  • Pipeline usage

2. Template 📝

Use this structure:

  1. Title & Purpose
  2. Imports (standard → third-party → local)
  3. Configs (all constants at top)
  4. Datasets (load, validate, split)
  5. Analysis (EDA)
  6. Modeling (use sklearn.pipeline.Pipeline)
  7. Evaluations (metrics on test data)

Quick Start

# Check your notebook
./scripts/check-notebook.sh my-notebook.ipynb

# Follow structure in notebook
# Use Pipeline for all transforms
# Set RANDOM_STATE everywhere

Key Rules

✅ DO:

  • Put all params in Config section
  • Use sklearn.pipeline.Pipeline
  • Split data BEFORE any transforms
  • Set random_state everywhere

❌ DON'T:

  • Magic numbers in code
  • Manual transforms (use Pipeline)
  • Fit on full dataset (data leakage)

Author

Converted from MLOps Coding Course

Changelog

v1.0.0 (2026-02-18)

  • Initial OpenClaw conversion
  • Added notebook checker