training-machine-learning-models
Train machine learning models with automated workflows. Analyzes datasets, selects model types (classification, regression), configures parameters, trains with cross-validation, and saves model artifacts. Use when asked to "train model" or "evalua...
- License 许可
- MIT
- 最近更新
- 2025-12-18
- Stars
- ★ 29
- Forks
- 9
01 前言 Front Matter
- name
- training-machine-learning-models
- license
- MIT
- description
- Train machine learning models with automated workflows. Analyzes datasets, selects model types (classification, regression), configures parameters, trains with cross-validation, and saves model artifacts. Use when asked to "train model" or "evalua...
- allowed-tools
- Read, Write, Edit, Grep, Glob, Bash
02 资源文件 11
- 资产文件assets/evaluation_report_template.md6.5 KB
- 资产文件assets/example_dataset.csv1.1 KB
- 资产文件assets/README.md377 B
- 资产文件assets/requirements.txt2.9 KB
- 参考文档references/README.md545 B
- 脚本scripts/evaluate_model.py2.8 KB
- 脚本scripts/load_model.py2.8 KB
- 脚本scripts/preprocess_data.py2.9 KB
- 脚本scripts/README.md652 B
- 脚本scripts/save_model.py2.8 KB
- 脚本scripts/train_model.py2.9 KB
03 SKILL.md 正文
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
- Data Analysis and Preparation: The skill analyzes the provided dataset and identifies the target variable, determining the appropriate model type (classification, regression, etc.).
- 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.
- 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:
- Analyze the customer churn data, identify the churn status as the target variable, and determine that a classification model is appropriate.
- 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:
- Analyze the house price data, identify the price as the target variable, and determine that a regression model is appropriate.
- 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.
04 同仓库更多 Skills
testing-visual-regression
Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".
generating-unit-tests
Automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".
generating-test-reports
Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".
orchestrating-test-execution
Coordinate parallel test execution across multiple environments and frameworks. Use when performing specialized testing. Trigger with phrases like "orchestrate tests", "run parallel tests", or "coordinate test execution".
managing-test-environments
Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".
generating-test-doubles
Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".