Replies: 2 comments 4 replies
-
I think the issue is that you are not starting Julia within the right environment for PySR, because you are calling it Could you please try something like from pysr.julia_helpers import init_julia
init_julia(julia_kwargs=dict(optimize=3, threads="auto")) and only afterwards, run the i.e., it would look like from pysr.julia_helpers import init_julia
init_julia(julia_kwargs=dict(optimize=3, threads="auto"))
from julia import Zygote
... Note you might need to do |
Beta Was this translation helpful? Give feedback.
-
Thank you so much, your suggestions are highly valued. |
Beta Was this translation helpful? Give feedback.
-
Hi,
Thank you for your great tool. I encountered a problem when I tried to use the multiprocessing calculation by setting the "multithreading=False", an error just occurred "KeyError: key DynamicExpressionsZygoteExt [98b68043-617e-5e87-ba04-89939eaf59ce] not found".
This issue arises possibly because I have customized the loss function (incorporating the gradient calculus), as I have tested a simple code provided in the manual (no customized loss function), and it works with the multiprocessing setup.
My devices info: Windows 10; Julia version: 1.9.3; pysr version is 0.16.3
My implementation:
The customized loss function
Beta Was this translation helpful? Give feedback.
All reactions