Starting from where you left off in the search #616
-
I am currently trying to use Symbolic Regression as part of an optimization routine. P.S.: And maybe it would also be possible to suppress printing out the results in each iteration. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can do warm starts by passing the 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 Also, in case you were also asking about this, the most relevant other threads: Other threads that are relevant:
You can set this with |
Beta Was this translation helpful? Give feedback.
You can do warm starts by passing the
saved_state
option toequation_search
. Make sure to specifyreturn_state=true
so thatequation_search
actually returns the entire state the first time.For example:
However I might recommend using the
MLJ
interface which does this automatically. The second time you runfit!(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…