automl-optimizer
БесплатноБез исполняемых скриптовНе проверенAutomated machine learning with hyperparameter optimization using Optuna, Hyperopt, or AutoML libraries. Activates for "automl", "hyperparameter tuning"…
от majiayu000★ 31 звезда на GitHubОб этом скилле
AutoML Optimizer
Overview
Automates the tedious process of hyperparameter tuning and model selection. Instead of manually trying different configurations, define a search space and let AutoML find the optimal configuration through intelligent exploration.
Why AutoML?
Manual Tuning Problems:
- Time-consuming (hours/days of trial and error)
- Subjective (depends on intuition)
- Incomplete (can't try all combinations)
- Not reproducible (hard to document search process)
AutoML Benefits:
- ✅ Systematic exploration of search space
- ✅ Intelligent sampling (Bayesian optimization)
- ✅ All experiments tracked automatically
- ✅ Find optimal configuration faster
- ✅ Reproducible (search process documented)
AutoML Strategies
Strategy 1: Hyperparameter Optimization (Optuna)
from specweave import OptunaOptimizer
# Define search space
def objective(trial):
# Suggest hyperparameters
params = {
'n_estimators': trial.suggest_int('n_estimators', 100, 1000),
'max_depth': trial.suggest_int('max_depth', 3, 10),
'learning_rate': trial.suggest_float('learning_rate', 0.01, 0.3, log=True),
'subsample': trial.suggest_float('subsample', 0.5, 1.0),
'colsample_bytree': trial.suggest_float('colsample_bytree', 0.5, 1.0)
}
# Train model
model = XGBClassifier(**params)
# Cross-validation score
scores = cross_val_score(model, X_train, y_train, cv=5, scoring='roc_auc')
return scores.mean()
# Run optimization
optimizer = OptunaOptimizer(
objective=objective,
n_trials=100,
direction='maximize',
increment="0042"
)
best_params = optimizer.optimize()
# Creates:
# - .specweave/increments/0042.../experiments/optuna-study/
# ├── study.db (Optuna database)
# ├── optimization_history.png
# ├── param_importances.png
# ├── parallel_coordinate.png
# └── best_params.json
Optimization Report:
# Optuna Optimization Report
## Search Space
- n_estimators: [100, 1000]
- max_depth: [3, 10]
- learning_rate: [0.01, 0.3] (log scale)
- subsample: [0.5, 1.0]
- colsample_bytree: [0.5, 1.0]
## Trials: 100
- Completed: 98
- Pruned: 2 (early stopping)
- Failed: 0
## Best Trial (#47)
- ROC AUC: 0.892 ± 0.012
- Parameters:
- n_estimators: 673
- max_depth: 6
- learning_rate: 0.094
- subsample: 0.78
- colsample_bytree: 0.91
## Parameter Importance
1. learning_rate (0.42) - Most important
2. n_estimators (0.28)
3. max_depth (0.18)
4. colsample_bytree (0.08)
5. subsample (0.04) - Least important
## Improvement over Default
- Default params: ROC AUC = 0.856
- Optimized params: ROC AUC = 0.892
- Improvement: +4.2%
Strategy 2: Algorithm Selection + Tuning
from specweave import AutoMLPipeline
# Define candidate algorithms with search spaces
pipeline = AutoMLPipeline(increment="0042")
# Add candidates
pipeline.add_candidate(
name="xgboost",
model=XGBClassifier,
search_space={
'n_estimators': (100, 1000),
'max_depth': (3, 10),
'learning_rate': (0.01, 0.3)
}
)
pipeline.add_candidate(
name="lightgbm",
model=LGBMClassifier,
search_space={
'n_estimators': (100, 1000),
'max_depth': (3, 10),
'learning_rate': (0.01, 0.3)
}
)
pipeline.add_candidate(
name="random_forest",
model=RandomForestClassifier,
search_space={
'n_estimators': (100, 500),
'max_depth': (3, 20),
'min_samples_split': (2, 20)
}
)
pipeline.add_candidate(
name="logistic_regression",
model=LogisticRegression,
search_space={
'C': (0.001, 100),
'penalty': ['l1', 'l2']
}
)
# Run AutoML (tries all algorithms + hyperparameters)
results = pipeline.fit(
X_train, y_train,
n_trials_per_model=50,
cv_folds=5,
metric='roc_auc'
)
# Best model automatically selected
best_model = pipeline.best_model_
best_params = pipeline.best_params_
AutoML Comparison:
| Model | Trials | Best Score | Mean Score | Std | Best Params |
|---------------------|--------|------------|------------|-------|--------------------------------------|
| xgboost | 50 | 0.892 | 0.876 | 0.012 | n_est=673, depth=6, lr=0.094 |
| lightgbm | 50 | 0.889 | 0.873 | 0.011 | n_est=542, depth=7, lr=0.082 |
| random_forest | 50 | 0.871 | 0.858 | 0.015 | n_est=384, depth=12, min_split=5 |
| logistic_regression | 50 | 0.845 | 0.840 | 0.008 | C=1.234, penalty=l2 |
**Winner: XGBoost** (ROC AUC = 0.892)
Strategy 3: Neural Architecture Search (NAS)
from specweave import NeuralArchitectureSearch
# For deep learning
nas = NeuralArchitectureSearch(increment="0042")
# Define search space
search_space = {
'num_layers': (2, 5),
'layer_sizes': (32, 512),
'activation': ['relu', 'tanh', 'elu'],
'dr
Установить automl-optimizer в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл automl-optimizer?
Automated machine learning with hyperparameter optimization using Optuna, Hyperopt, or AutoML libraries. Activates for "automl", "hyperparameter tuning", "optimize hyperparameters", "auto tune model", "neural architecture search", "automated ml". Systematically explores model and hyperparameter spaces, tracks all experiments, and finds optimal configurations with minimal manual intervention.
Как установить скилл automl-optimizer?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл automl-optimizer запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub