# 删除 `categorical_distance_func` 后,分类 TPE 既没有相似性泛化,也没有 Hub 替换
作者: thomasATbayer创建于 2026年9月29日更新于 2026年9月30日
标签bug
Without a distance function, TPE's categorical kernel is one-hot: an observation puts mass only on the exact choice seen, and similar-but-unseen choices get nothing but prior mass. With the Gaussian distance kernel, mass generalizes across similar choices. Measured on the same observations `[a, a, c]` over choices `[a, b, c]`, where `b` is similar to `a` and `c` is dissimilar to both:
内容来源: optuna/optuna