architecture = choise(["NeuralNetwork","xgdboost"])
if architecture=="NeuralNetwork":
n_layers = choise(range(1,10,1))
#more architecture releted params here.
else if architecture=="xgdboost":
max_depth = choise(range(1,5,1))
#more architecture releted params here.
Is there a way to define a hierarchy of parameters?
for example a parameter that chooses architecture, and each architecture has its own parameters.
example (pseudo code):