MilesCranmer / PySR

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

Using gradients from PySR #315

Closed MilesCranmer closed 1 year ago

MilesCranmer commented 1 year ago

Discussed in https://github.com/MilesCranmer/PySR/discussions/314

Originally posted by **TadeuNP** April 22, 2023 @TadeuNP Hi, When running SymbolicRegression.jl, I can set enable_autodiff=True and the computation of derivatives will work. However, when using eval_diff_tree_array from PySR, I get the following error: RuntimeError:
MilesCranmer commented 1 year ago

Indeed this is a bug. I'm making a patch now.