1
$\begingroup$

When applying multinomial Naive Bayes text classification I get very small probabilities(around 10e-48) so there's no way for me to know which classes are valid predictions and which ones are not. I'd the probabilities to be in the interval [0,1] so I can exclude classes in the prediction with say a score of 0.5 or less. How do I go about doing this? This is what I've implemented: enter image description here

$\endgroup$
  • $\begingroup$ Welcome to AI! (Sorry about our current lack of mathematical formatting--working on getting that addressed:) $\endgroup$ – DukeZhou Jul 17 '18 at 17:12
  • 1
    $\begingroup$ I think your probabilities are split up among all possible outputs. If you add them all together, do they come out to 1? Order them by value and you have your predictions $\endgroup$ – Zakk Diaz Jul 17 '18 at 18:30
  • $\begingroup$ Zakk Diaz's comment should be an answer! $\endgroup$ – John Doucette Aug 15 '18 at 22:46

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.