ml-pipeline-creation

SkillHub 平台的技能模块“ml-pipeline-creation”。

安装方式

先用 Prompt 核对来源与依赖。也可下载安装包。

用 AI 助手安装

复制提示词,让助手先核对固定版本和依赖。

查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "ml-pipeline-creation":https://skillpi.com/zh/skills/deepskill-d6002762d97953c8930434fb695b894fe2c622e565ee435f6075a90541fd49a4。安装前核对上游来源和版本:https://skillhub.cn/skills/user_3c6cb52e/ml-pipeline-creation-skillhub。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。

来源与配置

skillhub.cn

配置方式待核实

请查看原始来源中的适用工具、依赖和权限要求。

安装实测待补充

SkillHub 平台的技能模块“ml-pipeline-creation”。

0 下载

介绍来源: third_party · user_3c6cb52e · 1.0.0 参考来源

SkillPi 解读

能完成的任务
一种创建、管理和自动化机器学习管道的技术。
适合谁
来源文档未说明。
输入和输出
来源文档未说明。
软件、账号及付费要求
来源文档未说明。
限制与区别
来源文档未说明。
实测状态
未测试

文件浏览

在原站浏览文件 ↗

原始 SKILL.md

打开原文 ↗
Frontmatter
name: ml-pipeline-creation
slug: "ml-pipeline-creation"
version: "1.0.0"
displayName: "ml-pipeline-creation"
summary: "一种创建、管理和自动化机器学习管道的技术。"
description: 一种创建、管理和自动化机器学习管道的技术。
license: MIT

工作流

This skill enables the creation and management of machine learning (ML) pipelines, automating the process of training, evaluating, and deploying ML models. The workflow is designed to be flexible and adaptable to various ML tasks and frameworks.

  1. Define Pipeline Structure: The user specifies the stages of the ML pipeline, including data preprocessing, model training, model evaluation, and deployment. This is typically done in a configuration file (e.g., YAML or JSON).
  2. Component Implementation: Each stage of the pipeline is implemented as a separate component. These components are reusable and can be chained together to form a complete pipeline.
  3. Pipeline Execution: The skill executes the pipeline, running each component in the specified order. It handles data flow between components and manages dependencies.
  4. Monitoring and Logging: The skill provides tools for monitoring the pipeline's execution, logging results, and tracking experiments.
  5. Deployment: Once a model is trained and evaluated, the skill can automate its deployment to a serving environment.

Usage

To use this skill, you need to provide a pipeline definition file and the implementation of the pipeline components.

Example: Simple Scikit-learn Pipeline

Here's an example of how to define and run a simple ML pipeline using this skill.

pipeline.yaml

name: simple-sklearn-pipeline
components:
  - name: data-preprocessing
    script: preprocess.py
    inputs:
      - raw_data: /path/to/raw_data.csv
    outputs:
      - processed_data: /path/to/processed_data.csv
  - name: train-model
    script: train.py
    inputs:
      - processed_data: /path/to/processed_data.csv
    outputs:
      - model: /path/to/model.pkl
  - name: evaluate-model
    script: evaluate.py
    inputs:
      - model: /path/to/model.pkl
      - test_data: /path/to/test_data.csv
    outputs:
      - metrics: /path/to/metrics.json

preprocess.py

import pandas as pd
from sklearn.model_selection import train_test_split

# Load data
df = pd.read_csv('/path/to/raw_data.csv')

# Simple preprocessing
X = df.drop('target', axis=1)
y = df['target']
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

# Save processed data
pd.concat([X_train, y_train], axis=1).to_csv('/path/to/processed_data.csv', index=False)
pd.concat([X_test, y_test], axis=1).to_csv('/path/to/test_data.csv', index=False)

train.py

import pandas as pd
from sklearn.ensemble import RandomForestClassifier
import joblib

# Load processed data
df = pd.read_csv('/path/to/processed_data.csv')
X_train = df.drop('target', axis=1)
y_train = df['target']

# Train model
model = RandomForestClassifier(n_estimators=100, random_state=42)
model.fit(X_train, y_train)

# Save model
joblib.dump(model, '/path/to/model.pkl')

evaluate.py

import pandas as pd
import joblib
import json
from sklearn.metrics import accuracy_score

# Load model and test data
model = joblib.load('/path/to/model.pkl')
df = pd.read_csv('/path/to/test_data.csv')
X_test = df.drop('target', axis=1)
y_test = df['target']

# Evaluate model
y_pred = model.predict(X_test)
accuracy = accuracy_score(y_test, y_pred)

# Save metrics
with open('/path/to/metrics.json', 'w') as f:
    json.dump({'accuracy': accuracy}, f)

print(f'Model accuracy: {accuracy}')

当前收录版本

1.0.0

核对来源版本 ↗

安全与评测信息

质量评测

满分100 · 来自 SkillPi LAB 实验室的评测报告。

场景价值95/100

亮点

  • 提供机器学习管道创建、管理和自动化能力
  • 解决模型训练、评估、部署流程中的核心痛点
  • 支持多种 ML 任务和框架,具有高灵活性和复用性
触发精准75/100

待提升项

  • description写错位置 原报告严重程度:轻微

    顶层 description 字段内容过于简略('SkillHub skill'),实质性描述内容位于 skill_body 内部

    改进建议:建议将详细描述内容移至顶层 description 字段,确保触发信息完整准确

亮点

  • skill_body 内部提供了详细的触发描述和使用说明
  • 覆盖了多种触发场景和变体
结构规范95/100

亮点

  • Phase/步骤清晰,包含完整的端到端示例
  • frontmatter 完整,文档结构规范
  • 提供了 YAML 配置和 Python 脚本的完整实现示例
执行可靠90/100

亮点

  • 工具来源明确(pandas, sklearn, joblib),参数正确
  • 提供了完整的 pipeline.yaml 配置示例
  • 三个 Python 脚本实现完整,覆盖了数据预处理、模型训练和评估全流程
证据可验 (前四项均值)89/100

取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。

正文静态检测

100 / 100 · skillpi-20261123-no-r3-v1

正文未命中当前规则。

分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。

权限与使用前检查

根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。

  • 保存或修改文件

    先确认输出目录和同名文件是否会被覆盖;重要文件保留备份,优先写入新的输出目录。

    主文档提及 · 第 113 行

本站展示提示不会授予权限。涉及文件改动、密钥、外部发送或费用时,仍由你使用的工具按需确认。

安全评级与访问范围

safe · 静态证据核验,不代表运行安全保证。

来源文档未说明。

使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。