Closed mohangk closed 10 months ago
Hey @mohangk! Thanks for reporting this issue - you are right that this is a typo overlooked by us and we should be checking for the hyperopt section of the config in config_dict
as opposed to config
.
I've created this PR to patch this issue. Are you able to confirm that with this fix, things work as expected? https://github.com/ludwig-ai/ludwig/pull/3865
Description
The code in https://github.com/ludwig-ai/ludwig/blob/7e34450188f1265e6cd9cbda600dc0a605627099/ludwig/hyperopt/run.py#L208 seems to have a bug where its comparing if the HYPEROPT key is contained in the variable
config
- which is actually a string that contains the path to the config file. I believe the original intention was to compare it withconfig_dict
To Reproduce
Running the above results in the following error: The rottent_tomatoes.csv and rotten_tomatoes.yaml file is as per the tutorial here https://ludwig.ai/latest/getting_started/hyperopt/
Expected behavior The config is correctly parsed without the exception being thrown
Environment: