Naive Bayes Classification - Chanig distribution from Normal/Gaussian to other types
    5 views (last 30 days)
  
       Show older comments
    
    Oliver Ramos
 on 17 Jun 2020
  
    
    
    
    
    Commented: Oliver Ramos
 on 18 Jun 2020
            I am using Naive Bayes for multi-classification using:
Mdl = fitcnb(Features,Label);
Naive Bayes uses a normal distribution but when I checked my data, it doesn't fit as shown in the attachments.
Is there a way to change the type of distribution that best fits my data?
Thanks in advance.
0 Comments
Accepted Answer
  Hrishikesh Borate
    
 on 18 Jun 2020
        Hi, 
It’s my understanding that you are using Naïve Bayes classification for a multiclass problem with fitcnb function, and want to try some other distribution apart from Normal Distribution. 
You can use Multinomial Distribution, Multivariate Multinomial Distribution, Normal Distribution. To use these, you must specify them as
Mdl = fitcnb(___,Name,Value)  ;
where,  
Name will be ‘DistributionNames’, and  
Value can be ‘mn’ (for Multinomial Distribution), ‘mvmn’ (for Multivariate Multinomial Distribution), ‘normal’ (for Normal Distribution). 
More Answers (0)
See Also
Categories
				Find more on Naive Bayes in Help Center and File Exchange
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
