How to select the most complex model? idx = "max" #1080
-
|
Hello, I see in the documentation I can override the Pareto frontier equation with: but I'm not sure how to get the "max" idx programmatically. Thanks for your help! edit
Hopefully this is the optimal way. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Your way is valid already. An alternative: you can also pass SRRegressor(
#= ... =#
selection_method=(; losses, kws...) -> argmin(losses),
)I think this should work for you. But let me know if it doesn't. The default selection method is here: https://github.com/MilesCranmer/SymbolicRegression.jl/blob/eafea58565510cca5ed1b8f832ccf27fd233414e/src/MLJInterface.jl#L611 |
Beta Was this translation helpful? Give feedback.
Your way is valid already.
An alternative: you can also pass
selection_methodwhich is a property ofSRRegressor. So for your case you could pass:I think this should work for you. But let me know if it doesn't.
The default selection method is here: https://github.com/MilesCranmer/SymbolicRegression.jl/blob/eafea58565510cca5ed1b8f832ccf27fd233414e/src/MLJInterface.jl#L611