You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm certainly no expert, but the inner loop in classify() looks totally broken. I'd expect there to be a summation/product taken over 'prob', and then perhaps some scaling applied based on the number of documents with label L to the total number of documents.