-
Notifications
You must be signed in to change notification settings - Fork 398
Description
Describe the bug
When running the tuner component, it produces the following error: TypeError: '<' not supported between instances of 'int' and 'NoneType'. This issue is caused by the max_trials variable in the Oracle class inside the tuner. Upon tracing the code, I found that when Hyperband is initialized, it uses the HyperbandOracle class, which is a subclass of Engine.Oracle class. The problem appears to occur because max_trials is not set in the Oracle class. This results in an error when comparing len(sorted_trials) with max_trials in the Oracle file at line 677. Additionally, upon checking the super constructor of the Oracle class, it doesn't initialize a value for max_trials, which might be contributing to the issue.
To Reproduce
Provide steps to reproduce the bug: 1. Link: Colab Notebook that reproduces the issue.
Expected behavior
The tuner component should work without producing the error and handle the max_trials variable appropriately.
Additional context
i remember seeing it as a deprecated argument, and it happens on the latest release of keras
Would you like to help us fix it?
Yes