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

Something wrong with memory #34

Open
Zzz233 opened this issue Feb 22, 2023 · 1 comment
Open

Something wrong with memory #34

Zzz233 opened this issue Feb 22, 2023 · 1 comment

Comments

@Zzz233
Copy link

Zzz233 commented Feb 22, 2023

When i try: python build_features.py
I got this error:

Building training features
Traceback (most recent call last):
File "D:\ZZZ_dev\target-pred-py\src\features\build_features.py", line 113, in
Features().save_training_features(overwrite=True, parallel=5)
File "D:\ZZZ_dev\target-pred-py\src\features\build_features.py", line 59, in save_training_features
X, y, y_transform = self.build_training_features(parallel=parallel)
File "D:\ZZZ_dev\target-pred-py\src\features\build_features.py", line 39, in build_training_features
pool.map(self.get_numpy_fingerprint_from_smiles_series,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\multiprocessing\pool.py", line 771, in get
raise self._value
multiprocessing.pool.MaybeEncodingError: Error sending result: '[336054 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
336055 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
336056 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
336057 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
336058 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
...
448067 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
448068 [0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
448069 [0.0, 1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
448070 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
448071 [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, ...
Name: canonical_smiles, Length: 112018, dtype: object]'. Reason: 'MemoryError()'

Process finished with exit code 1

@ikmckenz
Copy link
Owner

ikmckenz commented Mar 4, 2023

How much RAM does your system have? Unfortunately most/all of the operations in this repository are currently quite memory heavy, and will error if you don't have enough system RAM. I would welcome PR's that refactor the code to better handle chucks of data and reduce the memory requirements.

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