optuna: Start time is wrong when calculating trials added by `enqueue_trial`.

I have a study with 30 trials. I read this study with all trials and use enqueue_trial to create a new study and add the best 10 trials. Then I start optuna to calculate the results on all 10 trials of the new study.

I observe that the logged “datetime_start” of all 10 trials is the same (which is wrong since the runs need a significant amount of time). After the 10 enqued runs the time is logged correctly for trial 11 and so on.

I am using optuna 2.3.0 from pip.

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 16 (16 by maintainers)

Most upvoted comments

Sounds like a reasonable change to me although I agree that we should proceed with some care, since the allowed states for the trial will be changed. As for the storage schema, I don’t think that it needs to be altered. It should be enough to change the logic of enque_trial, create_trial and FrozenTrial._validate since the columns is already nullable.