mirror of
https://github.com/wassname/optuna-dashboard.git
synced 2026-10-28 13:11:26 +08:00
Update examples/preferential-optimization/generator.py
This commit is contained in:
1 parent
a39eaecc9a
commit
6a9c05f93f
1 file changed
+2
@@ -32,6 +32,8 @@ def main() -> NoReturn:
|
||||
|
||||
with tempfile.TemporaryDirectory() as tmpdir:
|
||||
while True:
|
||||
# If n_comparison "best" trials (that are not reported bad) exists,
|
||||
# the generator waits for human evaluation.
|
||||
if len(study.best_trials) >= n_comparison:
|
||||
time.sleep(0.1) # Avoid busy-loop
|
||||
continue
|
||||
|
||||
Reference in new issue
Block a user