Replies: 1 comment 2 replies
-
|
I'd suggest this: and in the trainable function, simply ignore the unused hps. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to create a search space for a neural network with n layers (randomly chosen from [2,3,4,5]) and each layer has certain units (randomly chosen from [100, 200, 300])
For example:
if the network has 2 layers, then the units could be [100, 300], [300, 200], [200, 200] , etc.
if the network has 3 layers, then the units could be [100, 200, 100], [300, 100, 200], [200,300,300], etc.
The code could look like
Here I try to create space['n_units'] by the randomly selected value of space['n_layers']. But there is syntax error:
It's because
tune.choice([2,3,4,5])is of typeray.tune.sample.Categoricalwhich I do not know how to turn it intoint.Your advise is much appreciated!
The implement in
optunais as following; what is the corresponding implementation in FLAML/ Ray?Beta Was this translation helpful? Give feedback.
All reactions