Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError when training data #23

Open
laiyii opened this issue Dec 19, 2022 · 4 comments
Open

AttributeError when training data #23

laiyii opened this issue Dec 19, 2022 · 4 comments

Comments

@laiyii
Copy link

laiyii commented Dec 19, 2022

Dear developer, I get an error when training data:

AttributeError: Can't get attribute 'RNA_SS_data' on <module '__mp_main__' from 'D:\\大四\\上学期\\机器学习及其在化学中的应用\\大作业\\workdir\\ufold_train.py'>

The file related to 'mp_main' is "C:\Users\fly\anaconda3\lib\multiprocessing\spawn.py", it seems like a multiprocessing error, could you please help me with this problem? Thank you!

@laiyii
Copy link
Author

laiyii commented Dec 19, 2022

I'm running with cpu)

@sperfu
Copy link
Contributor

sperfu commented Dec 20, 2022

Hi there,

You may refer to (

p = Pool()
) and (
self.seq = list(p.map(encoding2seq, self.data_x))
)
to change this to single core, but be aware that it will result in lower running time.

@laiyii
Copy link
Author

laiyii commented Dec 20, 2022

Thanks for your quick reply🌹
While I'm a beginner, still confused about how to change this to single core, could you please show me more details? Thank you.

@laiyii
Copy link
Author

laiyii commented Dec 21, 2022

I find the AttributeError results from windows system, the Pool.map function is failed (https://medium.com/@grvsinghal/speed-up-your-python-code-using-multiprocessing-on-windows-and-jupyter-or-ipython-2714b49d6fac)
it goes well when using linux.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants