Closed MilesCranmer closed 2 years ago
This occurs at this line: https://github.com/MilesCranmer/SymbolicRegression.jl/blob/60e2fcfd164b2342f7eddd6f91b16de837194c2b/src/EvaluateEquation.jl#L175 which is quite interesting as this means the input is a constant value... so this means the optimizer is producing an Inf in one of the constants! (or, perhaps the simplifier is)
Possible solutions (will update with ideas):
Should be fixed now. I also have a unit test for checking this.
Cross post with https://github.com/MilesCranmer/PySR/issues/116
It seems like there are some very rare edge cases where a domain error will occur. For the vast majority of instances, an Inf or Nan will be caught at the source, and the evaluation function immediately quit. However, it looks like sometimes this doesn't happen. Here is the traceback: