You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'num_nodes' hyperparameter in Param_set of 'surv.deephit' learner is a ParamUty class with default value: 32, 32.
To optimize that with two random num_nodes, I wrote the code below:
But when I added it to a nested cross validation model to find its optimized value , It included all factors instead of randomly selected two of them, briefly as follows (just include column of num_nodes):
'num_nodes' hyperparameter in Param_set of 'surv.deephit' learner is a ParamUty class with default value: 32, 32.
To optimize that with two random num_nodes, I wrote the code below:
search_space <- ps(num_nodes = p_fct(list(c(32,64,128,256)), trafo = function(x) c(sample(x,1), sample(x,1))))
to check that:
generate_design_random(search_space,10)$transpose()
Which showed:
But when I added it to a nested cross validation model to find its optimized value , It included all factors instead of randomly selected two of them, briefly as follows (just include column of num_nodes):
Which showed:
So, how is it possible to transform parameters with ParamUty class with more than one level, which can be applied to nested cross validation?
The text was updated successfully, but these errors were encountered: