MilesCranmer / PySR

High-Performance Symbolic Regression in Python and Julia
https://astroautomata.com/PySR
Apache License 2.0
2.09k stars 197 forks source link

Silence warnings for Optim.jl #408

Closed MilesCranmer closed 3 months ago

MilesCranmer commented 10 months ago

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

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 https://github.com/JuliaNLSolvers/Optim.jl/pull/1046 https://github.com/MilesCranmer/SymbolicRegression.jl/issues/255

MilesCranmer commented 3 months ago

Closed by #564