This is what I think you should end up withDiscreteParameterRange('General/dataset_url', values=["option 1 for url", "option 2 for url"])
If args['dataset_url']
is a list, you should just do values=args['dataset_url']
Answered
Hi, I Am Trying To Hyperparameterization. I Am Not Sure How To Pass A Args['Dataset_Url'] From Hyper.Py To Base.Py.
Hi, I am trying to hyperparameterization. I am not sure how to pass a args['dataset_url'] from hyper.py to base.py.hyper_parameters=[ DiscreteParameterRange('General/batch_size', values=[1, 2, 4, 8]), DiscreteParameterRange('General/dataset_url', values=[args['dataset_url']]) ],
I thought of using hyper_parameters in HyperParameterOptimizer. But this gave an error.raise IndexError('Cannot choose from an empty sequence') from None IndexError: Cannot choose from an empty sequence
Also dont think this is right approach..
1K Views
1
Answer
3 years ago
one year ago
Tags