360 Secure SkillHub
360 安全技能中心

MLOps Prototyping CN

核心功能包括提供标准化Jupyter Notebook模板(涵盖标题、导入、配置等7个模块),以及脚本校验Notebook是否符合MLOps最佳实践。适用于MLOps项目的Notebook原型开发场景,可避免魔数、数据泄露等问题,保障项目可复现。输入为Jupyter Notebook文件,运行检查脚本可输出合规性结果提示。

guohongbin-git
guohongbin-git
热度 66.47
最近更新 2026-05-18 12:04:48
分类:开发依赖:代码执行 / 读写文件应用场景:代码审查 / 数据处理 / DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 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