You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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 themax_trials
variable in theOracle
class inside the tuner. Upon tracing the code, I found that whenHyperband
is initialized, it uses theHyperbandOracle
class, which is a subclass ofEngine.Oracle
class. The problem appears to occur becausemax_trials
is not set in theOracle
class. This results in an error when comparinglen(sorted_trials)
withmax_trials
in theOracle
file at line 677. Additionally, upon checking thesuper
constructor of theOracle
class, it doesn't initialize a value formax_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
The text was updated successfully, but these errors were encountered: