Visualization plots recursion depth resource limits?
jabowery opened this issue · 1 comments
After running for a few days (the long runtime due to PyTorch not working with multicore) I encountered this error:
Unable to make visualisation plots.
=========== Epoch 05563 ===========
-> Time 34.42 s
Overall best at R=0.999970
-> Raw expression :
1
──────
⎛ 1 ⎞
⎜────⎟
⎝α₀⋅t⎠
ℯ ⋅cos(f⋅t + 4⋅φ)
Best of epoch at R=0.867387
-> Raw expression :
⎛ 1 ⎞
⎜ ───⎟
⎜ f⋅t⎟
log(φ)⋅sin⎝-φ + -f⋅t - 3⋅φ - ℯ ⎠
──────────────────────────────────Unable to make visualisation plots.
=========== Epoch 05563 ===========
-> Time 34.42 s
Overall best at R=0.999970
-> Raw expression :
1
──────
⎛ 1 ⎞
⎜────⎟
⎝α₀⋅t⎠
ℯ ⋅cos(f⋅t + 4⋅φ)
Best of epoch at R=0.867387
-> Raw expression :
⎛ 1 ⎞
⎜ ───⎟
⎜ f⋅t⎟
log(φ)⋅sin⎝-φ + -f⋅t - 3⋅φ - ℯ ⎠
──────────────────────────────────
α₀⋅t
Unable to save last plots and data before stopping.
Figure(4000x1800)
Traceback (most recent call last):
File "/home/jabowery/anaconda3/envs/PhySO/lib/python3.8/site-packages/matplotlib/colorbar.py", line 247, in __call__
pos = self._orig_locator(ax, renderer)
File "/home/jabowery/anaconda3/envs/PhySO/lib/python3.8/site-packages/matplotlib/colorbar.py", line 247, in __call__
pos = self._orig_locator(ax, renderer)
File "/home/jabowery/anaconda3/envs/PhySO/lib/python3.8/site-packages/matplotlib/colorbar.py", line 247, in __call__
pos = self._orig_locator(ax, renderer)
[Previous line repeated 997 more times]
RecursionError: maximum recursion depth exceeded
α₀⋅t
Unable to save last plots and data before stopping.
Figure(4000x1800)
Traceback (most recent call last):
File "/home/jabowery/anaconda3/envs/PhySO/lib/python3.8/site-packages/matplotlib/colorbar.py", line 247, in __call__
pos = self._orig_locator(ax, renderer)
File "/home/jabowery/anaconda3/envs/PhySO/lib/python3.8/site-packages/matplotlib/colorbar.py", line 247, in __call__
pos = self._orig_locator(ax, renderer)
File "/home/jabowery/anaconda3/envs/PhySO/lib/python3.8/site-packages/matplotlib/colorbar.py", line 247, in __call__
pos = self._orig_locator(ax, renderer)
[Previous line repeated 997 more times]
RecursionError: maximum recursion depth exceeded
Hi @jabowery,
Thank you for this remark, this is very useful as I have not experimented a lot with runs longer than 1000 epochs.
This is probably due to the Pareto front figure not being properly closed, this has been rectified in the latest version of physo.
Please do not hesitate to come forward with other issues regarding long runs if you come across some.
PS: since the goal of SR is to recover equations, there is a degeneracy in the sense that multiple equations are equivalent when simplified. If you are running the damped harmonic oscillator demo, I would consider the expression you are recovering here as good enough to stop the search.