Skip to content

Starting from where you left off in the search #616

Answered by MilesCranmer
paul188 asked this question in Q&A
Discussion options

You must be logged in to vote

You can do warm starts by passing the saved_state option to equation_search. Make sure to specify return_state=true so that equation_search actually returns the entire state the first time.

For example:

saved_state = equation_search(X, y; options=options, return_state=true)

# Continue where it left off:
saved_state = equation_search(X, y; options=options, return_state=true, saved_state=saved_state)

However I might recommend using the MLJ interface which does this automatically. The second time you run fit!(mach), it will propagate all expressions forward. (And will recompute the losses based on whatever the current dataset is).

Also, in case you were also asking about this, the most rele…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by paul188
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
SymbolicRegression.jl SymbolicRegression.jl-related discussion
2 participants
Converted from issue

This discussion was converted from issue #615 on May 02, 2024 16:47.