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

[Feature]: Should launch search in a thread #383

Open MilesCranmer opened 11 months ago

MilesCranmer commented 11 months ago

Feature Request

PySR should launch the search process in a thread so that we can watch for stop signals. However, I'm not sure how PySR could forward the stop signal to PyJulia?

MilesCranmer commented 11 months ago

This is probably the way to integrate with tqdm as well.

MilesCranmer commented 4 months ago

Actually in a process. Then we can catch any interrupt and write to a "signal file" that SymbolicRegression.jl would read.