optuna.terminator.StaticErrorEvaluator

class optuna.terminator.StaticErrorEvaluator(constant)[source]

一个始终返回常量值的错误评估器。

该评估器可用于在评估的潜在改进低于固定阈值时终止优化。

参数:

constant (float) – 用户指定的常量值,将始终作为错误估计返回。

注意

在 v3.2.0 中添加为实验性功能。接口可能在更高版本中更改,恕不另行通知。请参阅 https://github.com/optuna/optuna/releases/tag/v3.2.0

方法

evaluate(trials, study_direction)