Closed CharFox1 closed 2 years ago
Which version of PySR is this? Can you reproduce it on the latest version?
Looks like "pip install pysr" had given me version 0.6.12.post1. I switched to 0.6.0 and all the tests listed above had the same results (the error still happens).
@kazewong - do you see something similar in your runs? (I know he has seen some worker issues with the latest version.)
@CharFox1, does using the multithreading=True
argument help at all?
Setting multithreading=True
in version 0.6.0 causes an unrecognized keyword error (but maybe that's expected) and in version 0.6.12.post1 I get a FileNotFoundError for the HOF csv.bkup file created during that run, despite it showing up in the usual place. The full error for 0.6.12.post1 is below:
Running on julia -O3 --threads 4 C:\Users\ipunc\AppData\Local\Temp\tmpu7lrlnbh\runfile.jl
Activating environment at `C:\Python39\lib\site-packages\Project.toml`
Updating registry at `C:\Users\ipunc\.julia\registries\General`
Updating git-repo `https://github.com/JuliaRegistries/General.git`
No Changes to `C:\Python39\Lib\site-packages\Project.toml`
No Changes to `C:\Python39\Lib\site-packages\Manifest.toml`
Started!Traceback (most recent call last): ] 0.0 %
File "C:\Python39\lib\site-packages\pysr\sr.py", line 1001, in get_hof
all_outputs = [pd.read_csv(str(equation_file) + ".bkup", sep="|")]
File "C:\Python39\lib\site-packages\pandas\util\_decorators.py", line 311, in wrapper
return func(*args, **kwargs)
File "C:\Python39\lib\site-packages\pandas\io\parsers\readers.py", line 586, in read_csv
return _read(filepath_or_buffer, kwds)
File "C:\Python39\lib\site-packages\pandas\io\parsers\readers.py", line 482, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Python39\lib\site-packages\pandas\io\parsers\readers.py", line 811, in __init__
self._engine = self._make_engine(self.engine)
File "C:\Python39\lib\site-packages\pandas\io\parsers\readers.py", line 1040, in _make_engine
return mapping[engine](self.f, **self.options) # type: ignore[call-arg]
File "C:\Python39\lib\site-packages\pandas\io\parsers\c_parser_wrapper.py", line 51, in __init__
self._open_handles(src, kwds)
File "C:\Python39\lib\site-packages\pandas\io\parsers\base_parser.py", line 222, in _open_handles
self.handles = get_handle(
File "C:\Python39\lib\site-packages\pandas\io\common.py", line 701, in get_handle
handle = open(
FileNotFoundError: [Errno 2] No such file or directory: 'hall_of_fame_2021-08-24_142150.653.csv.bkup'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\ipunc\Desktop\ATOMS Lab\PySR Experiments\subtractionError.py", line 10, in <module>
equations = pysr(X, y, niterations=5,
File "C:\Python39\lib\site-packages\pysr\sr.py", line 478, in pysr
equations = get_hof(**kwargs)
File "C:\Python39\lib\site-packages\pysr\sr.py", line 1003, in get_hof
raise RuntimeError(
RuntimeError: Couldn't find equation file! The equation search likely exited before a single iteration completed.
Sorry for not following up on this. I just wanted to link this issue to this one: https://github.com/MilesCranmer/SymbolicRegression.jl/issues/43. I think I may have narrowed down the issue. It's a very subtle bug caused by a backend update in 0.6.10. I will let you know if this is truly the problem.
I'm planning to revert the updated backend since it has caused several such issues. In PySR 0.6.13, the backend should be back to the stable version.
Update: just pushed.
This should be fixed in the latest versions.
Description:
When using the "sub" operator and the "plus" and "mult" operators together, an out of bounds error occurs. Not sure why or how these are related but the smallest error causing code I have found is below:
I am running Windows 10 and using VS Code and the PowerShell terminal in the IDE. Python Version 3.9.0 Julia Version 1.6.2
The Error:
(Continues stopping other processes below)
As you can see from the code above, I have tested both adding my own subtraction operator and a negative operator and both options do work as expected. The order of operators does not matter and there is not any variation in the error (always worker 2). I have also tested with some other equations (where I originally found the error) and they also consistently run into the same issue. I'm really not sure what could be causing this and I think I can work around it but it should probably be looked into.
Thanks for your time :)