Manipulating identified expressions using a custom loss function #303
-
Is it possible to (numerically) integrate an expression or use a symbolic library (like Sympy) from a custom loss function? I thought of using "node_to_symbolic" from SymbolicRegression.jl to obtain something that I could later convert to a callable function, but all I managed to do with it was simple evaluation:
And this only worked when calling Julia code directly, not from a custom loss function. Ideally, the tree itself would be a callable function, but it doesn't seem to be the case. Any suggestions? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Have you looked at the |
Beta Was this translation helpful? Give feedback.
This is not allowed because the loss values are cached, so they may be out-of-date in one when comparing two individuals. Instead what you should do is restart the search (pass in the
saved_state
) with a different loss function, which will trigger all existing loss values to be cleared in the saved state.