技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
sklearn-tuning【数据与研究】Routes KerasTuner SklearnTuner workflows for conditional scikit-learn estimator factories, cross-validation, scoring, groups, sample weights, DataFrame inputs, and pickle-backed model recovery.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the task is about keras_tuner.SklearnTuner, tuning a
scikit-learn estimator factory, cross-validating several estimator families, or
restoring a tuned estimator from a KerasTuner trial. This route is for
scikit-learn models, not Keras neural-network training.
SklearnTuner(oracle, hypermodel, scoring=None, metrics=None, cv=None, **kwargs).HyperParameters factories that return classifiers, regressors,
or scikit-learn Pipeline objects.score semantics.groups, and sample_weight.get_best_models() / load_model() recovery of model.pickle artifacts.Hyperband: it is a neural-training oracle and is not an appropriate Oracle
for SklearnTuner.hp, using conditional scopes for
branch-specific hyperparameters.keras_tuner.Objective("score", "max"); Bayesian optimization is a good
default for a small space.scoring callable when comparing model families, then
select cv and pass groups when the splitter requires them.search(X, y, sample_weight=..., groups=...) with NumPy arrays or
pandas DataFrames and inspect trial status/metrics.get_best_models() and validate it on held-out
data. See workflows.sub-skills/sklearn-tuning/scripts/smoke_sklearn.py for a tiny dependency-aware local check.cv=None means KFold(5, shuffle=True, random_state=1).sample_weight is split per fold. It is passed to an estimator's fit only
when fit advertises sample_weight; it is omitted for a scikit-learn
Pipeline and estimators without that argument.X or y.