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
segfault on gaussian_naive_bayes.apply() with SparseRealFeatures #351
Comments
thanks, scheduled to fix ;) |
policecar, could you please pull latest sources and check if it is failing still? I didn't managed to reproduce your issue, but fixed some errors that were in the classifier code. Thanks. |
i pulled, compiled, and ran the code again – no more segfault : ) Python(16510) malloc: *** error for object 0x100f8d208: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug |
Could you please attach code reproducing it? |
def gaussiannaivebayes_sparse():
there's still an error in my test data but the malloc_error occurs equally if i apply naive bayes to the training data |
looks like my current code runs without throwing any errors... |
I'm sorry I didn't react on last message. Anyway, I'll close this issue after one more fix as it is working now |
one more thing, how about computing the conditional probabilities using the log which would yield a sum instead of the product of all conditional probabilities per feature vector, and thereby avoiding issues with underflow ? |
hehe, i just noticed that's what you just did. thanks plenty! |
Well that's exactly what I did in a14a48a :) |
No description provided.
The text was updated successfully, but these errors were encountered: