MilesCranmer / PySR

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

Update backend with constraints fix #265

Closed MilesCranmer closed 1 year ago

MilesCranmer commented 1 year ago

There was a bug noted in https://github.com/MilesCranmer/SymbolicRegression.jl/pull/171. This PR includes that fix into PySR.

This will result in modest speed improvements for default settings, and massive speed improvements when parsimony is set to zero. However, it may change behavior slightly, as now the algorithm is not allowed to explore above the maximum size, ever.

MilesCranmer commented 1 year ago

I probably need to re-run hyperparameter tuning with this fix… https://github.com/MilesCranmer/PySR/discussions/115