dnn-tuning
Skill by aliyun
Tunes the architecture and training parameters of a binary classification DNN using Optuna TPE Bayesian search. It is for users who already have a baseline DNN model from the dnn-modeling skill and need to fix overfitting or underfitting.
Install dnn-tuning
Built from the published package, never by AI.
git clone --depth 1 https://github.com/aliyun/qwen-dianjin /tmp/qwen-dianjin && mkdir -p ~/.claude/skills && cp -r /tmp/qwen-dianjin/DianJin-SKILLS/financial-engineering-expert/dnn-tuning ~/.claude/skills/dnn-tuningRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/aliyun/qwen-dianjin /tmp/qwen-dianjin && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/qwen-dianjin/DianJin-SKILLS/financial-engineering-expert/dnn-tuning ~/.gemini/antigravity-cli/skills/dnn-tuningAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
DNN Tuning is a skill for adjusting deep neural network settings. It searches network architecture (number of layers, first layer width, dropout) and training parameters (learning rate, weight decay, batch size) using Optuna TPE Bayesian optimization. The search space is constrained by diagnosis: the skill checks whether the model overfits or underfits and narrows the ranges accordingly.
The skill runs in two modes. Interactive mode runs one round at a time and pauses for user feedback, while AUTO mode iterates until the results converge. Each round ends with a report that lists parameter changes, metric comparisons and a diagnosis. It is intended for users who have already trained a baseline model with the dnn-modeling skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Diagnosis-driven searchConstrains the search space based on whether the baseline model overfits or underfits.
- Optuna TPE searchSearches layers, width, dropout, learning rate, weight decay and batch size with Bayesian optimization.
- Interactive tuningRuns one tuning round at a time and waits for user feedback between rounds.
- AUTO tuning loopIterates tuning rounds automatically until the validation metric converges.
- Per-round reportOutputs parameter changes, metric comparisons, a diagnosis and a next-step suggestion for each round.
- Convergence checkStops tuning when validation improves by less than 0.001 for two rounds in a row.
What you need
- Python
- A baseline DNN model trained with the dnn-modeling skill
- A parquet or csv data file with a 0/1 target column
Try asking
- DNN调参,数据在 ./data.parquet,目标列是 y_label
- 帮我自动调优这个深度学习模型到最优
- DNN过拟合了,帮我调整 dropout 和网络结构
Good to know
- The target variable must be a 0/1 binary label.
- Search runs use 30 epochs, while the final model uses 100 epochs.
- Default maximum is 5 tuning rounds.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: DianJin-SKILLS/financial-engineering-expert/dnn-tuning/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to dnn-tuning
All alternatives →Guides an assistant through the Kaggle CLI, covering competitions, datasets, notebooks, models, benchmarks, authentication and quota. It is for people who use the kaggle command-line tool.
Generates Python code that uses BigQuery DataFrames (BigFrames) for data processing, analysis and machine learning on BigQuery. It is meant for Python data tasks, and the source says to use bigquery-basics for SQL-first workflows.
Discovers connected data sources and proposes loading options when a workspace lacks the data a question needs. Suited to users who want to connect database, warehouse or cloud sources from the chat.
Guides developers through enabling the Data Manager API, setting up Application Default Credentials, and installing its client libraries. Built for developers who are getting started with the API and need local environment and access setup.
Guides authoring and validating Apache Airflow DAGs for Managed Service for Apache Airflow (MSAA), formerly Cloud Composer. Built for developers who create or extend Airflow DAGs in these environments.
Extracts structured JSON data from over 40 websites, including Amazon, LinkedIn, Instagram, TikTok, Facebook and YouTube. Built on Bright Data's Web Data APIs, it returns product details, profiles, reviews, posts and comments from a URL.
Compare with kaggle-cli, bigquery-bigframes or data-loading
dnn-tuning: common questions
What does DNN tuning search for?
It searches the number of hidden layers, first layer width, dropout rate, learning rate, weight decay and batch size. The ranges are set in the skill's search space table.
When does tuning stop?
It stops automatically when Val performance improves by less than 0.001 for two rounds in a row, or when the maximum of 5 rounds is reached.
Do I need to train a model first?
Yes. The source says a baseline DNN model must be trained first with the dnn-modeling skill.
How do I install dnn-tuning?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is dnn-tuning free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is dnn-tuning safe to use?
It scores 71 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to dnn-tuning?
Similar skills: kaggle-cli, bigquery-bigframes, data-loading, data-manager-api-setup.
