算法艺术创作
algorithmic-art
通过代码和可调参数创作生成艺术与交互式视觉效果。
analysis-visualization【设计与创意】Analyze completed Optuna studies with parameter importances, trial dataframes, diagnostic plots, Plotly/Matplotlib backends, Pareto fronts, hypervolume history, and optional dependency checks.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill after trials already exist and the task is to inspect, export, rank, or visualize study results. It covers optuna.importance, Study.trials_dataframe, optuna.visualization, and optuna.visualization.matplotlib.
optuna.importance.get_param_importances.Study.trials_dataframe for tabular analysis or CSV output.plotly, matplotlib, pandas, or scikit-learn gracefully.../optimization-workflows/SKILL.md for creating studies, defining objectives, running trials, ask/tell, callbacks, pruning reports, and trial generation.../samplers-pruners/SKILL.md for choosing or configuring samplers, pruners, constraints, seeds, and pruning algorithms.../cli-and-storage/SKILL.md for CLI usage, storage URLs, RDB-backed study loading, study creation from a shell, and persistent storage operations.references/analysis-reference.mdreferences/visualization-reference.mdreferences/troubleshooting.mdRun these scripts from this sub-skill directory in any environment with optuna installed. They create small deterministic in-memory studies and do not use network, external datasets, or persistent storage.
python scripts/analysis_smoke.py
python scripts/visualization_smoke.py
Expected behavior in a minimal install:
analysis_smoke.py reports a successful core importance check with PedAnovaImportanceEvaluator, and skips dataframe or default fANOVA checks if pandas or scikit-learn are missing.visualization_smoke.py reports Plotly and Matplotlib checks as skipped when those optional backends are not installed.import optuna
from optuna.importance import PedAnovaImportanceEvaluator, get_param_importances
study = optuna.create_study(direction="minimize")
study.optimize(lambda trial: (trial.suggest_float("x", -2.0, 2.0) - 0.5) ** 2, n_trials=8)
importances = get_param_importances(
study,
evaluator=PedAnovaImportanceEvaluator(),
params=["x"],
)
from optuna.visualization import plot_optimization_history, plot_slice
fig = plot_optimization_history(study)
fig.write_html("optimization_history.html")
slice_fig = plot_slice(study, params=["x"])
slice_fig.write_html("slice.html")