Skip to content
Discussion options

You must be logged in to vote

Your way is valid already.

An alternative: you can also pass selection_method which is a property of SRRegressor. So for your case you could 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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@snowysnowcones
Comment options

Answer selected by snowysnowcones
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants