automl / DEHB

https://automl.github.io/DEHB/
Apache License 2.0
72 stars 16 forks source link

fix single thread #2

Closed goktug97 closed 3 years ago

goktug97 commented 3 years ago

Hello,

I had problem while running with n_workers=1. self.client is not initialized when the n_workers is 1 as it is not required but self.client is used inside of DEHB.run function without a guard which throws AttributeError: 'NoneType' object has no attribute 'scheduler_info'. I added a check to fix it.

Neeratyoy commented 3 years ago

Hey @goktug97 Sorry for the bug, it was a hasty push from my end. Your fix is neat and apt and I am happy to merge!