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

[BUG] Pickling error on use of ReLU #245

Closed MilesCranmer closed 8 months ago

MilesCranmer commented 1 year ago

I see this error when I try to use the ReLU operator:

PicklingError: Can't pickle relu: attribute lookup relu on __main__ failed

seems like it's implemented in a way that can't be pickled. Should be an easy fix.

MilesCranmer commented 1 year ago

Looks like max and min also aren't implemented in the default dictionaries?

MilesCranmer commented 8 months ago

Sorry this took me so long to get around to. Fixed with #486