tomotopy
tomotopy copied to clipboard
Bad Allocation using DTModel
Hi there, I am running into an issue right now when following dtm.py. My jupyter notebook returns:
RuntimeError: bad allocation
when attempting to training the model.
Document loading appears to be okay, but not sure why this is happening. Are there some expensive array initializations? Thanks!
Removed DTModel and replaced with LDAModel and worked just fine.
Can you please assist with DTModel? Is anyone running into this issue?
Hi @jlevy44 Sorry for late reply. Could you share more detail about your environment including OS, Python version and tomotopy version?
I'll get back to you, as this is work with a collaborator. Do you have any tips of things to try when this happens?
Hi @jlevy44
bad_alloc
exception is thrown usually when the memory allocation is failed. But I think system memory is enough to train DTM in most of use case. So we need to determine if this problem is due to an unusual case that requires a lot of memory, or a case where the system memory is very low, or if it is a memory allocation bug in tomotopy.
If you could share a minimal reproducible piece of code or data, it would be helpful in finding out the cause.