optimizing-deep-learning-models
Optimize deep learning models using Adam, SGD, and learning rate scheduling to improve accuracy and reduce training time. Use when asked to "optimize deep learning model" or "improve model performance".
- License 许可
- MIT
- 最近更新
- 2025-12-18
- Stars
- ★ 29
- Forks
- 9
01 前言 Front Matter
- name
- optimizing-deep-learning-models
- license
- MIT
- description
- Optimize deep learning models using Adam, SGD, and learning rate scheduling to improve accuracy and reduce training time. Use when asked to "optimize deep learning model" or "improve model performance".
- allowed-tools
- Read, Write, Edit, Grep, Glob, Bash
02 资源文件 8
- 资产文件assets/optimization_config.json2.6 KB
- 资产文件assets/README.md372 B
- 参考文档references/README.md480 B
- 脚本scripts/analyze_model.py4.7 KB
- 脚本scripts/learning_rate_scheduler.py2.8 KB
- 脚本scripts/model_validation.py2.9 KB
- 脚本scripts/optimize_model.py2.9 KB
- 脚本scripts/README.md563 B
03 SKILL.md 正文
Overview
This skill empowers Claude to automatically optimize deep learning models, enhancing their performance and efficiency. It intelligently applies various optimization techniques based on the model's characteristics and the user's objectives.
How It Works
- Analyze Model: Examines the deep learning model's architecture, training data, and performance metrics.
- Identify Optimizations: Determines the most effective optimization strategies based on the analysis, such as adjusting the learning rate, applying regularization techniques, or modifying the optimizer.
- Apply Optimizations: Generates optimized code that implements the chosen strategies.
- Evaluate Performance: Assesses the impact of the optimizations on model performance, providing metrics like accuracy, training time, and resource consumption.
When to Use This Skill
This skill activates when you need to:
- Optimize the performance of a deep learning model.
- Reduce the training time of a deep learning model.
- Improve the accuracy of a deep learning model.
- Optimize the learning rate for a deep learning model.
- Reduce resource consumption during deep learning model training.
Examples
Example 1: Improving Model Accuracy
User request: "Optimize this deep learning model for improved image classification accuracy."
The skill will:
- Analyze the model and identify potential areas for improvement, such as adjusting the learning rate or adding regularization.
- Apply the selected optimization techniques and generate optimized code.
- Evaluate the model's performance and report the improved accuracy.
Example 2: Reducing Training Time
User request: "Reduce the training time of this deep learning model."
The skill will:
- Analyze the model and identify bottlenecks in the training process.
- Apply techniques like batch size adjustment or optimizer selection to reduce training time.
- Evaluate the model's performance and report the reduced training time.
Best Practices
- Optimizer Selection: Experiment with different optimizers (e.g., Adam, SGD) to find the best fit for the model and dataset.
- Learning Rate Scheduling: Implement learning rate scheduling to dynamically adjust the learning rate during training.
- Regularization: Apply regularization techniques (e.g., L1, L2 regularization) to prevent overfitting.
Integration
This skill can be integrated with other plugins that provide model building and data preprocessing capabilities. It can also be used in conjunction with monitoring tools to track the performance of optimized models.
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".