MilesCranmer/SymbolicRegression.jl

Silence warnings for Optim.jl

MilesCranmer opened this issue · 1 comments

The latest Optim.jl generates warnings when NaN is encountered during optimization: https://github.com/JuliaNLSolvers/Optim.jl/releases/tag/v1.7.7 and also exits early.

This results in PySR & SymbolicRegression.jl generating tons of such warnings. So would be great if this could be turned off, as it should not be shown to the user.

x-ref JuliaNLSolvers/Optim.jl#1046 MilesCranmer/PySR#408

cc @mohamed82008 @pkofod

Emergency fixed by #256