aspuru-guzik-group / GA

Code for the paper: Augmenting genetic algorithms with deep neural networks for exploring the chemical space
98 stars 36 forks source link

RuntimeError #5

Closed PeterWilsono closed 11 months ago

PeterWilsono commented 11 months ago

I am unable to resolve 'RuntimeError An attack has been made to start a new process before the current process has finished its bootstrapping phase.' Requesting assistance with this issue!

akshat998 commented 11 months ago

Hello,

This issue can sometimes be specific to the operating system. Could you please specify which system you're using? This repository was tested on Ubuntu, and knowing your system might help in diagnosing the problem.

Additionally, while addressing this issue, you might be interested in exploring JANUS, an algorithm that's known for its efficiency and improved performance in similar contexts (an improvement of this algorithm). Here's a link for more information and potential insights that might be relevant to your situation: https://github.com/aspuru-guzik-group/JANUS

Hope this helps and looking forward to your response regarding the system details! :)

PeterWilsono commented 11 months ago

My device is  Windows 10 system 

PeterWilson @.***

 

------------------ 原始邮件 ------------------ 发件人: "aspuru-guzik-group/GA" @.>; 发送时间: 2023年11月24日(星期五) 中午1:34 @.>; @.**@.>; 主题: Re: [aspuru-guzik-group/GA] RuntimeError (Issue #5)

Hello,

This issue can sometimes be specific to the operating system. Could you please specify which system you're using? This repository was tested on Ubuntu, and knowing your system might help in diagnosing the problem.

Additionally, while addressing this issue, you might be interested in exploring JANUS, an algorithm that's known for its efficiency and improved performance in similar contexts (an improvement of this algorithm). Here's a link for more information and potential insights that might be relevant to your situation: https://github.com/aspuru-guzik-group/JANUS

Hope this helps and looking forward to your response regarding the system details! :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

PeterWilsono commented 11 months ago

I am very interested in adding discriminators to genetic algorithms to solve problems, so I hope to run this code on my device, which will be very helpful!

PeterWilson @.***

 

------------------ 原始邮件 ------------------ 发件人: "aspuru-guzik-group/GA" @.>; 发送时间: 2023年11月24日(星期五) 中午1:34 @.>; @.**@.>; 主题: Re: [aspuru-guzik-group/GA] RuntimeError (Issue #5)

Hello,

This issue can sometimes be specific to the operating system. Could you please specify which system you're using? This repository was tested on Ubuntu, and knowing your system might help in diagnosing the problem.

Additionally, while addressing this issue, you might be interested in exploring JANUS, an algorithm that's known for its efficiency and improved performance in similar contexts (an improvement of this algorithm). Here's a link for more information and potential insights that might be relevant to your situation: https://github.com/aspuru-guzik-group/JANUS

Hope this helps and looking forward to your response regarding the system details! :)

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

akshat998 commented 11 months ago

Hello,

This makes sense. Python's inherent parallelization capability, facilitated by multiprocessing, does not receive full support on Windows systems. Could you consider using a Linux-based system, such as Mac or Ubuntu, possibly on a cluster?

Alternatively, you could eliminate multiprocessing from the code, replacing it with for-loops. Be aware, though, that this change will result in slower execution than the current implementation.

You can also use Google Colab with JANUS (as the code in JANUS is pip-intallable) :)

Regards Akshat

PeterWilsono commented 11 months ago

Thank you for your reply. I cannot fully understand this code, but I am very interested in using neural networks as discriminators to enhance genetic algorithms. 

How can I learn the logic behind this? I only need to look at the discriminator file.

 I would also like to ask for your opinion

PeterWilson @.***

 

------------------ 原始邮件 ------------------ 发件人: "aspuru-guzik-group/GA" @.>; 发送时间: 2023年11月24日(星期五) 中午1:47 @.>; @.**@.>; 主题: Re: [aspuru-guzik-group/GA] RuntimeError (Issue #5)

Hello,

This makes sense. Python's inherent parallelization capability, facilitated by multiprocessing, does not receive full support on Windows systems. Could you consider using a Linux-based system, such as Mac or Ubuntu, possibly on a cluster?

Alternatively, you could eliminate multiprocessing from the code, replacing it with for-loops. Be aware, though, that this change will result in slower execution than the current implementation.

You can also use Google Colab with JANUS (as the code in JANUS is pip-intallable) :)

Regards Akshat

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

akshat998 commented 11 months ago

Hi Peter,

Absolutely! Definitely make sure you understand the paper first, then, look at the discriminator implementation, along with specifically how it's used in the fitness evaluations.

Good luck! Feel free to re-open/create new issues if you have questions :)