-
Notifications
You must be signed in to change notification settings - Fork 156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested parameter definitions #2
Comments
This is how I would handle nested parameters: Nested lists of pairs, constructed using a new So, suppose we have a composite model with declaration mutatable struct SomeComposite <: Supervised
outer1
outer2
model::SomeModel
end where mutable struct SomeModel <: Supervised
inner1
inner2
end Then for some Pairs(:outer1 => 2.3, :outer2 => 42, :model => Pairs(:inner1 => 1, :inner2 => -1)) There will be a corresponding To specify ranges of parameter values we specify iterators (either deterministic or grid = Pairs(:outer2 => iter_out2, :model => Pairs(:inner1 => iter_in1)) In place of iterators we could use the existing To carry out tuning, all we need are two other methods I can write The reason we need the (I'm not stuck on the name |
Closing as no objections raised and now implemented. |
Nested parameter sets are currently not supported we could borrow from JuMP
ps = makeParamSet(
makeDiscreteParam("kernel", values=c("polydot", "rbfdot")),
makeNumericParam("C", lower=-15, upper=15, trafo=function(x) 2^x),
makeNumericParam("sigma", lower=-15, upper=15, trafo=function(x) 2^x,
requires = quote(kernel == "rbfdot")),
makeIntegerParam("degree", lower = 1, upper = 5,
requires = quote(kernel == "polydot")))
The text was updated successfully, but these errors were encountered: