训练机器学习模型
- 作者仓库星标 0
- 作者仓库 skills-registry
- 领域
- 通用
- 作者声明的智能体
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 运行环境证据
- 未执行;当前没有隔离运行测试证据
- 作者 / 版本 / 许可证
- @tomevault-io · 未声明许可证
- 上下文用量评级
- 低消耗
- 接入复杂程度
- 即装即用
- 是否需要外部接口密钥
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 运行环境要求
- 未检出明确要求
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
需要注意: 未声明工具权限范围;实际权限由运行环境决定。
# Ml Model Trainer
Train machine learning models with configurable architectures, loss functions, and optimization strategies across classification, regression, and other task types.
## Overview
This skill empowers Claude to automatically train and evaluate machine learning models. It streamlines the model development process by handling data analysis, model selection, training, and evaluation, ultimately providing a persisted model artifact.
## How It Works
1. **Data Analysis and Preparation**: The skill analyzes the provided dataset and identifies the target variable, determining the appropriate model type (classification, regression, etc.).
2. **Model Selection and Training**: Based on the data analysis, the skill selects a suitable machine learning model and configures the training parameters. It then trains the model using cross-validation techniques.
3. **Performance Evaluation and Persistence**: After training, the skill generates performance metrics to evaluate the model's effectiveness. Finally, it saves the trained model artifact for future use.
## When to Use This Skill
This skill activates when you need to:
- Train a machine learning model on a given dataset.
- Evaluate the performance of a machine learning model.
- Automate the machine learning model training process.
## Examples
### Example 1: Training a Classification Model
User request: "Train a classification model on this dataset of customer churn data."
The skill will:
1. Analyze the customer churn data, identify the churn status as the target variable, and determine that a classification model is appropriate.
2. Select a suitable classification algorithm (e.g., Logistic Regression, Random Forest), train the model using cross-validation, and generate performance metrics such as accuracy, precision, and recall.
### Example 2: Training a Regression Model
User request: "Train a regression model to predict house prices based on features like size, location, and number of bedrooms."
The skill will:
1. Analyze the house price data, identify the price as the target variable, and determine that a regression model is appropriate.
2. Select a suitable regression algorithm (e.g., Linear Regression, Support Vector Regression), train the model using cross-validation, and generate performance metrics such as Mean Squared Error (MSE) and R-squared.
## Best Practices
- **Data Quality**: Ensure the dataset is clean and properly formatted before training the model.
- **Feature Engineering**: Consider feature engineering techniques to improve model performance.
- **Hyperparameter Tuning**: Experiment with different hyperparameter settings to optimize model performance.
## Integration
This skill can be used in conjunction with other data analysis and manipulation tools to prepare data for training. It can also integrate with model deployment tools to deploy the trained model to production.
## Prerequisites
- Appropriate file access permissions
- Required dependencies installed
## Instructions
1. Invoke this skill when the trigger conditions are met
2. Provide necessary context and parameters
3. Review the generated output
4. Apply modifications as needed
## Output
The skill produces structured output relevant to the task.
## Error Handling
- Invalid input: Prompts for correction
- Missing dependencies: Lists required components
- Permission errors: Suggests remediation steps
## Resources
- Project documentation
- Related skills and commands
---
> Source: [ComeOnOliver/skillshub](https://github.com/ComeOnOliver/skillshub) — distributed by [TomeVault](https://tomevault.io).
<!-- tomevault:4.0:skill_md:2026-05-22 -->
章节与文件索引
按说明文件中的顺序排列。
概述
它是如何运作的
何时使用此技能
示例 1:训练分类模型
示例 2:训练回归模型
文件/命令 -> ComeOnOliver/skillshub · github.com/ComeOnOliver/skillshub
内容校验值 -> 2d727ee14352
当前原文的自动摘译,尚未人工审校。
概述
这项技能使 Claude 能够自动训练和评估机器学习模型。它通过处理数据分析、模型选择、训练和评估来简化模型开发过程,最终提供持久的模型工件。
它是如何运作的
数据分析和准备:该技能分析提供的数据集并识别目标变量,确定适当的模型类型(分类、回归等)。模型选择和训练:基于数据分析,技能选择合适的机器学习模型并配置训练参数。然后,它使用交叉验证技术来训练模型。性能评估和持久性:训练后,该技能会生成性能指标来评估模型的有效性。最后,它保存训练后的模型工件以供将来使用。
何时使用此技能
当您需要执行以下操作时,此技能就会激活: 在给定数据集上训练机器学习模型。评估机器学习模型的性能。自动化机器学习模型训练过程。
示例 1:训练分类模型
用户请求:“在此客户流失数据数据集上训练分类模型。”该技能将: 分析客户流失数据,将流失状态识别为目标变量,并确定分类模型是否合适。选择合适的分类算法(例如逻辑回归、随机森林),使用交叉验证训练模型,并生成准确性、精确度和召回率等性能指标。
示例 2:训练回归模型
用户请求:“训练一个回归模型,根据面积、位置和卧室数量等特征来预测房价。”该技能将: 分析房价数据,将价格确定为目标变量,并确定回归模型是否合适。选择合适的回归算法(例如线性回归、支持向量回归),使用交叉验证训练模型,并生成均方误差 (MSE) 和 R 平方等性能指标。