-
-
Notifications
You must be signed in to change notification settings - Fork 965
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: '<' not supported between instances of 'NoneType' and 'int' #5226
Comments
I just followed the code in this link |
@yancychy Thank you for your bug report! |
Thanks. It's 3.5.0. It works when n_jobs=1 which needs very long time to finish. I hope to do paralle to reduce the running time. |
When I set n_trials=1, n_jobs=2, it only show 1 n_trial results. [I 2024-02-06 13:33:34,868] Using an existing study with name 'studyID' instead of creating a new one.
10
[I 2024-02-06 13:33:34,924] Trial 8 finished with value: 100.0 and parameters: {'tx': 10}. Best is trial 8 with value: 100.0.
Study statistics:
Number of finished trials: 9
Number of pruned trials: 0
Number of complete trials: 2
Best trial:
Value: 100.0
Params:
tx: 10 |
This is expected behaviour. |
@yancychy Could you tell us what version of mysql you are using, and what DB driver you are using? (We test our code with PyMySQL.) Also could you tell us about your OS? |
I have not troubleshot this in great detail, but I reproduced the issue with a fresh MySQL database. Some basic poking has indicated that what is happening is that rows end up missing from the all of the
whereas a functional trial looks like:
I have observed this both when setting What is the case is that the dictionary of study trials in
I have not found the root cause of this, but I added a check in
|
The version is mysql 5.7.36 on Linux. I am using mysqlclient==2.1.0 |
MyISAM doesn't seem to support transactions. Could you try using InnoDB? |
Thanks. I modified the my.conf and used InnoDB. The errors still are same to previous errors. |
Don't use GitHub Issues to ask support questions.
Hi, when I try to run optuna on parallel mode, I have 4 CPUs on the node. I tried to set n_jobs=-1, but it failed with following errors. It only work when I set n_jobs=1.
Python: 3.10
Optuna: 3.5.0
My example code:
The text was updated successfully, but these errors were encountered: