keras-tuner icon indicating copy to clipboard operation
keras-tuner copied to clipboard

conditional_scope might not be correctly exemplified.

Open scrovy opened this issue 1 year ago • 0 comments

This code does not illustrate the utility of conditional_scope according to what is described above it. Since no hyperparameters are created within the with hp.conditional_scope("model_type", ...): scopes, the code will behave the same as if the scopes were not there at all. Could you either improve the code by inserting some hp.Int, hp.Choice, etc to the body of the scopes or clarify if I misunderstood the expected behavior of conditional_scope? Thanks in advance. https://github.com/keras-team/keras-tuner/blob/0dd114dd5353c941e8e14e68356a3fb124e3a0d1/keras_tuner/engine/hyperparameters/hyperparameters.py#L105-L121

scrovy avatar Aug 16 '23 08:08 scrovy