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,
![image](https://private-user-images.githubusercontent.com/111584092/277468785-b3061e7a-90ee-424f-b606-cf5c929bc6b3.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxOTY3MzQsIm5iZiI6MTcxOTE5NjQzNCwicGF0aCI6Ii8xMTE1ODQwOTIvMjc3NDY4Nzg1LWIzMDYxZTdhLTkwZWUtNDI0Zi1iNjA2LWNmNWM5MjliYzZiMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwNjI0JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDYyNFQwMjMzNTRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1kMjNiZGI3NmNiNTM4Yzc0ODUwYzdkZDRiMjZhYzk2ZDY4MmY1YTRhOTNmY2M0MzRiYTQ2YmM1ZGJiNmQ4N2JjJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ed74DND2-0AA9UvdSmC80xzSZFGpHO7QBuKxvQ0PUXQ)
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