python - TPE(来自 Optuna)是否考虑试验次数?

标签 python hyperparameters optuna

我正在使用 optuna 的 TPE 采样器来优化深度学习视觉模型的超参数。 我想知道 optuna 是否根据试验次数来调整搜索。

如果我训练 1000 次试验并在 500 次停止,我可以看到算法没有尝试许多参数。 如果我减少 n_trials,TPE 探索是否会更快(并且不太精确)? 换句话说,使用 n_step=1000 在 500 处中断 optuna 与使用 n_trials = 500 并等待结束相同。

我对 TPE 的工作原理只有基本了解。

谢谢。

最佳答案

If I reduce n_trials, does TPE explore faster (and less precisely)?

没有。

... is interupting optuna at 500 with n_step=1000 the same as using n_trials = 500 and waiting until the end.

是的。

这是因为 TPE(来自 Optuna)不知道剩余(或总)试验的数量。

关于python - TPE(来自 Optuna)是否考虑试验次数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63282307/

相关文章:

python - 了解 Optuna 中的中间值和修剪

python - Optuna 多目标优化的最佳参数

python - Quickfix:如何在 Python 中使用 SSL

python - 如何访问列表中存在的字典键值?

machine-learning - 如何在PyTorch中实现学习率的随机对数空间搜索?

python - 为什么 GridSearchCV 方法的精度低于标准方法?

machine-learning - 改进boosting模型,降低均方根误差

python - 如果没有要爬行的网址,Scrapy 会关闭蜘蛛

python - Scrapy:抓取多个页面并在单个数组中生成结果

python - Optuna 在大量试验中建议相同的参数值(浪费时间和预算的重复试验)