Ap_uniform_sampler() Missing 1 Required Positional Argument: 'high' In Ray Tune Package For Python
I am trying to use the Ray Tune package for hyperparameter tuning of a LSTM implemented using pure Tensorflow. I used the hyperband scheduler and HyperOptSearch algorithms for this
Solution 1:
Looks like simple typographical error here:
'lstm_size': hp.uniform('lstm_size', [8,16,32,64,128]),
It seems that you wanted lstm_size
to be chosen from the list supplied. In that case you need to use hp.choice here too, just like you used for all the other parameters below 'lstm_size'
.
'lstm_size': hp.choice('lstm_size', [8,16,32,64,128])
Post a Comment for "Ap_uniform_sampler() Missing 1 Required Positional Argument: 'high' In Ray Tune Package For Python"